mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
update cmd help
This commit is contained in:
@@ -35,20 +35,20 @@ class UserApplicationsCommand extends Command
|
||||
parent::__construct('user:applications');
|
||||
|
||||
$this->setDescription('List, Create, Edit, Delete application in Phraseanet <comment>(experimental)</>')
|
||||
->addOption('user_id', 'u', InputOption::VALUE_REQUIRED, 'The id of user.')
|
||||
->addOption('app_id', 'a', InputOption::VALUE_REQUIRED, 'The application ID')
|
||||
->addOption('name', null, InputOption::VALUE_REQUIRED, 'The desired name for application user.')
|
||||
->addOption('type', 't', InputOption::VALUE_OPTIONAL, 'The kind of application user Desktop or Web.',ApiApplication::WEB_TYPE)
|
||||
->addOption('description', 'd', InputOption::VALUE_REQUIRED, 'The desired description for application user.')
|
||||
->addOption('website', 'w', InputOption::VALUE_OPTIONAL, 'The desired url for application user.')
|
||||
->addOption('callback', 'c', InputOption::VALUE_OPTIONAL, 'The desired callback endpoint for application user.')
|
||||
->addOption('webhook_url', null, InputOption::VALUE_REQUIRED, 'The desired webhook url for application')
|
||||
->addOption('user_id', 'u', InputOption::VALUE_REQUIRED, 'The owner id (user id), required for Create Edit and Delete.')
|
||||
->addOption('app_id', 'a', InputOption::VALUE_REQUIRED, 'The application ID, required for Edit and Delete')
|
||||
->addOption('name', null, InputOption::VALUE_REQUIRED, 'The desired name for application, required for Create and Edit.')
|
||||
->addOption('type', 't', InputOption::VALUE_OPTIONAL, 'The kind of application, Desktop or Web.',ApiApplication::WEB_TYPE)
|
||||
->addOption('description', 'd', InputOption::VALUE_REQUIRED, 'The desired description for application.')
|
||||
->addOption('website', 'w', InputOption::VALUE_OPTIONAL, 'The desired url.')
|
||||
->addOption('callback', 'c', InputOption::VALUE_OPTIONAL, 'The desired endpoint for callback, required for web kind')
|
||||
->addOption('webhook_url', null, InputOption::VALUE_REQUIRED, 'The webhook url')
|
||||
->addOption('create_token', null, InputOption::VALUE_NONE, 'Generate or regenerate an access token')
|
||||
->addOption('activate_password', null, InputOption::VALUE_OPTIONAL, 'Activateor deactivate password OAuth2 grant type , values true or false', 'false')
|
||||
->addOption('activate_password', null, InputOption::VALUE_OPTIONAL, 'Activate or deactivate password OAuth2 grant type , values true or false', 'false')
|
||||
->addOption('create', null, InputOption::VALUE_NONE, 'Create application for user in Phraseanet')
|
||||
->addOption('edit', null, InputOption::VALUE_NONE, 'Edit application in Phraseanet work only if app_id and user_id are set')
|
||||
->addOption('delete', null, InputOption::VALUE_NONE, 'Delete application in Phraseanet, need app_id')
|
||||
->addOption('list', null, InputOption::VALUE_NONE, 'List all application or user application if --user_id is set')
|
||||
->addOption('delete', null, InputOption::VALUE_NONE, 'Delete application in Phraseanet, require an app_id')
|
||||
->addOption('list', null, InputOption::VALUE_NONE, 'List all applications or user applications if --user_id is set')
|
||||
->addOption('jsonformat', null, InputOption::VALUE_NONE, 'Output in json format')
|
||||
|
||||
->setHelp('');
|
||||
|
Reference in New Issue
Block a user