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