rename app_id to app-id
This commit is contained in:
parent
d3bfb433d1
commit
fc1d897ea5
|
@ -19,14 +19,14 @@ class Disable extends Command {
|
||||||
->setName('app:disable')
|
->setName('app:disable')
|
||||||
->setDescription('disable an app')
|
->setDescription('disable an app')
|
||||||
->addArgument(
|
->addArgument(
|
||||||
'app_id',
|
'app-id',
|
||||||
InputArgument::REQUIRED,
|
InputArgument::REQUIRED,
|
||||||
'disable the specified app'
|
'disable the specified app'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function execute(InputInterface $input, OutputInterface $output) {
|
protected function execute(InputInterface $input, OutputInterface $output) {
|
||||||
$appId = $input->getArgument('app_id');
|
$appId = $input->getArgument('app-id');
|
||||||
if (\OC_App::isEnabled($appId)) {
|
if (\OC_App::isEnabled($appId)) {
|
||||||
\OC_App::disable($appId);
|
\OC_App::disable($appId);
|
||||||
$output->writeln($appId . ' disabled');
|
$output->writeln($appId . ' disabled');
|
||||||
|
|
|
@ -19,14 +19,14 @@ class Enable extends Command {
|
||||||
->setName('app:enable')
|
->setName('app:enable')
|
||||||
->setDescription('enable an app')
|
->setDescription('enable an app')
|
||||||
->addArgument(
|
->addArgument(
|
||||||
'app_id',
|
'app-id',
|
||||||
InputArgument::REQUIRED,
|
InputArgument::REQUIRED,
|
||||||
'enable the specified app'
|
'enable the specified app'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function execute(InputInterface $input, OutputInterface $output) {
|
protected function execute(InputInterface $input, OutputInterface $output) {
|
||||||
$appId = $input->getArgument('app_id');
|
$appId = $input->getArgument('app-id');
|
||||||
if (\OC_App::isEnabled($appId)) {
|
if (\OC_App::isEnabled($appId)) {
|
||||||
$output->writeln($appId . ' is already enabled');
|
$output->writeln($appId . ' is already enabled');
|
||||||
} else if (!\OC_App::getAppPath($appId)) {
|
} else if (!\OC_App::getAppPath($appId)) {
|
||||||
|
|
Loading…
Reference in New Issue