[files_external] fix commands
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
b7c8e9ed88
commit
19b039e6e0
|
@ -71,27 +71,27 @@ class Applicable extends Base {
|
|||
'The id of the mount to edit'
|
||||
)->addOption(
|
||||
'add-user',
|
||||
null,
|
||||
'',
|
||||
InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED,
|
||||
'user to add as applicable'
|
||||
)->addOption(
|
||||
'remove-user',
|
||||
null,
|
||||
'',
|
||||
InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED,
|
||||
'user to remove as applicable'
|
||||
)->addOption(
|
||||
'add-group',
|
||||
null,
|
||||
'',
|
||||
InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED,
|
||||
'group to add as applicable'
|
||||
)->addOption(
|
||||
'remove-group',
|
||||
null,
|
||||
'',
|
||||
InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED,
|
||||
'group to remove as applicable'
|
||||
)->addOption(
|
||||
'remove-all',
|
||||
null,
|
||||
'',
|
||||
InputOption::VALUE_NONE,
|
||||
'Set the mount to be globally applicable'
|
||||
);
|
||||
|
|
|
@ -83,7 +83,7 @@ class Create extends Base {
|
|||
->setDescription('Create a new mount configuration')
|
||||
->addOption(
|
||||
'user',
|
||||
null,
|
||||
'',
|
||||
InputOption::VALUE_OPTIONAL,
|
||||
'user to add the mount configuration for, if not set the mount will be added as system mount'
|
||||
)
|
||||
|
@ -110,7 +110,7 @@ class Create extends Base {
|
|||
)
|
||||
->addOption(
|
||||
'dry',
|
||||
null,
|
||||
'',
|
||||
InputOption::VALUE_NONE,
|
||||
'Don\'t save the created mount, only list the new mount'
|
||||
);
|
||||
|
@ -180,7 +180,7 @@ class Create extends Base {
|
|||
if ($input->getOption('output') === self::OUTPUT_FORMAT_PLAIN) {
|
||||
$output->writeln('<info>Storage created with id ' . $mount->getId() . '</info>');
|
||||
} else {
|
||||
$output->writeln($mount->getId());
|
||||
$output->writeln((string)$mount->getId());
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
|
@ -103,7 +103,7 @@ class Delete extends Base {
|
|||
$question = new ConfirmationQuestion('Delete this mount? [y/N] ', false);
|
||||
|
||||
if (!$questionHelper->ask($input, $output, $question)) {
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ class Import extends Base {
|
|||
->setDescription('Import mount configurations')
|
||||
->addOption(
|
||||
'user',
|
||||
null,
|
||||
'',
|
||||
InputOption::VALUE_OPTIONAL,
|
||||
'user to add the mount configurations for, if not set the mount will be added as system mount'
|
||||
)
|
||||
|
@ -98,7 +98,7 @@ class Import extends Base {
|
|||
)
|
||||
->addOption(
|
||||
'dry',
|
||||
null,
|
||||
'',
|
||||
InputOption::VALUE_NONE,
|
||||
'Don\'t save the imported mounts, only list the new mounts'
|
||||
);
|
||||
|
|
|
@ -77,7 +77,7 @@ class ListCommand extends Base {
|
|||
'user id to list the personal mounts for, if no user is provided admin mounts will be listed'
|
||||
)->addOption(
|
||||
'show-password',
|
||||
null,
|
||||
'',
|
||||
InputOption::VALUE_NONE,
|
||||
'show passwords and secrets'
|
||||
)->addOption(
|
||||
|
|
|
@ -79,7 +79,7 @@ class Notify extends Base {
|
|||
'The password for the remote mount (required only for some mount configuration that don\'t store credentials)'
|
||||
)->addOption(
|
||||
'path',
|
||||
null,
|
||||
'',
|
||||
InputOption::VALUE_REQUIRED,
|
||||
'The directory in the storage to listen for updates in',
|
||||
'/'
|
||||
|
|
Loading…
Reference in New Issue