diff --git a/bin/console b/bin/console index 8b7ad8cb00..de7d3c7f6d 100755 --- a/bin/console +++ b/bin/console @@ -62,8 +62,8 @@ try { $cli->command(new \module_console_aboutAuthors('about:authors')); $cli->command(new \module_console_aboutLicense('about:license')); - $cli->command(new \module_console_checkExtension('check:extension')); $cli->command(new CheckConfig('check:config')); + $cli->command(new \module_console_checkExtension('check:extension')); $cli->command(new UpgradeDBDatas('system:upgrade-datas')); @@ -72,7 +72,6 @@ try { $cli->command(new \module_console_systemMailCheck('system:mail-check')); $cli->command(new \module_console_systemBackupDB('system:backup-db')); $cli->command(new \module_console_systemClearCache('system:clear-cache')); - $cli->command(new \module_console_systemTemplateGenerator('system:template-generator')); $cli->command(new \module_console_systemExport('system:export')); $cli->command(new \module_console_taskrun('task:run')); @@ -82,7 +81,7 @@ try { $cli->command(new \module_console_schedulerStop('scheduler:stop')); $cli->command(new \module_console_schedulerStart('scheduler:start')); - $cli->command(new Mailtest('mail:test')); + $cli->command(new MailTest('mail:test')); $cli->command(new \module_console_fieldsList('fields:list')); $cli->command(new \module_console_fieldsDelete('fields:delete')); diff --git a/bin/developer b/bin/developer index 07c5c1bde2..0e2f6f3159 100755 --- a/bin/developer +++ b/bin/developer @@ -78,6 +78,7 @@ try { $cli->command(new Behat()); $cli->command(new LessCompiler()); $cli->command(new JavascriptBuilder()); + $cli->command(new \module_console_systemTemplateGenerator('system:generate-templates')); $cli['console']->addCommands(array( // DBAL Commands diff --git a/lib/Alchemy/Phrasea/Command/BuildMissingSubdefs.php b/lib/Alchemy/Phrasea/Command/BuildMissingSubdefs.php index a0b2dc73ee..094bdf0c92 100644 --- a/lib/Alchemy/Phrasea/Command/BuildMissingSubdefs.php +++ b/lib/Alchemy/Phrasea/Command/BuildMissingSubdefs.php @@ -31,7 +31,7 @@ class BuildMissingSubdefs extends Command { parent::__construct($name); - $this->setDescription('Build missing subviews'); + $this->setDescription('Builds subviews that previously failed to be generated / did not exist when records were added'); return $this; } diff --git a/lib/Alchemy/Phrasea/Command/CheckConfig.php b/lib/Alchemy/Phrasea/Command/CheckConfig.php index 0ba508dc71..964c67e048 100644 --- a/lib/Alchemy/Phrasea/Command/CheckConfig.php +++ b/lib/Alchemy/Phrasea/Command/CheckConfig.php @@ -33,7 +33,7 @@ class CheckConfig extends AbstractCheckCommand { parent::__construct($name); - $this->setDescription("Checks environment"); + $this->setDescription("Performs a check against the environment and configuration. Give some advices for production settings."); return $this; } diff --git a/lib/Alchemy/Phrasea/Command/Compile/Configuration.php b/lib/Alchemy/Phrasea/Command/Compile/Configuration.php index a4c7a7730a..ee1be55145 100644 --- a/lib/Alchemy/Phrasea/Command/Compile/Configuration.php +++ b/lib/Alchemy/Phrasea/Command/Compile/Configuration.php @@ -20,7 +20,7 @@ class Configuration extends Command public function __construct() { parent::__construct('compile:configuration'); - $this->setDescription('Compile configuration'); + $this->setDescription('Compiles YAML configuration to plain PHP'); } protected function doExecute(InputInterface $input, OutputInterface $output) diff --git a/lib/Alchemy/Phrasea/Command/CreateCollection.php b/lib/Alchemy/Phrasea/Command/CreateCollection.php index 781748b13e..89d6f7ce22 100644 --- a/lib/Alchemy/Phrasea/Command/CreateCollection.php +++ b/lib/Alchemy/Phrasea/Command/CreateCollection.php @@ -33,7 +33,7 @@ class CreateCollection extends Command { parent::__construct($name); - $this->setDescription('Create a collection in Phraseanet') + $this->setDescription('Creates a collection in Phraseanet') ->setHelp('') ->addArgument('databox_id', InputArgument::REQUIRED, 'The id of the databox where to create the collection', null) ->addArgument('collname', InputArgument::REQUIRED, 'The name of the new collection', null) diff --git a/lib/Alchemy/Phrasea/Command/Developer/APIRoutesDumper.php b/lib/Alchemy/Phrasea/Command/Developer/APIRoutesDumper.php index f5addccacf..016e5c42db 100644 --- a/lib/Alchemy/Phrasea/Command/Developer/APIRoutesDumper.php +++ b/lib/Alchemy/Phrasea/Command/Developer/APIRoutesDumper.php @@ -19,6 +19,8 @@ class APIRoutesDumper extends AbstractRoutesDumper public function __construct() { parent::__construct('routes:dump-api'); + + $this->setDescription('Dumps Phraseanet API routes'); } protected function doExecute(InputInterface $input, OutputInterface $output) diff --git a/lib/Alchemy/Phrasea/Command/Developer/Behat.php b/lib/Alchemy/Phrasea/Command/Developer/Behat.php index 24f712e7ee..f52e9e053d 100644 --- a/lib/Alchemy/Phrasea/Command/Developer/Behat.php +++ b/lib/Alchemy/Phrasea/Command/Developer/Behat.php @@ -21,6 +21,8 @@ class Behat extends Command public function __construct() { parent::__construct('behat:help'); + + $this->setDescription('Prints helps about Phraseanet configuration for behat tests'); } protected function doExecute(InputInterface $input, OutputInterface $output) diff --git a/lib/Alchemy/Phrasea/Command/Developer/BowerInstall.php b/lib/Alchemy/Phrasea/Command/Developer/BowerInstall.php index 7a72501091..89c83fc28a 100644 --- a/lib/Alchemy/Phrasea/Command/Developer/BowerInstall.php +++ b/lib/Alchemy/Phrasea/Command/Developer/BowerInstall.php @@ -26,7 +26,7 @@ class BowerInstall extends Command parent::__construct('dependencies:bower'); $this - ->setDescription('Install bower dependencies') + ->setDescription('Installs bower dependencies') ->addOption('no-dev', 'd', InputOption::VALUE_NONE, 'Do not install dev dependencies') ->addOption('attempts', 'a', InputOption::VALUE_REQUIRED, 'Number of attempts to install dependencies.', 4); } diff --git a/lib/Alchemy/Phrasea/Command/Developer/ComposerInstall.php b/lib/Alchemy/Phrasea/Command/Developer/ComposerInstall.php index d6ae72c928..c892b4e519 100644 --- a/lib/Alchemy/Phrasea/Command/Developer/ComposerInstall.php +++ b/lib/Alchemy/Phrasea/Command/Developer/ComposerInstall.php @@ -25,7 +25,7 @@ class ComposerInstall extends Command parent::__construct('dependencies:composer'); $this - ->setDescription('Install composer dependencies') + ->setDescription('Installs composer dependencies') ->addOption('no-dev', 'd', InputOption::VALUE_NONE, 'Do not install dev dependencies') ->addOption('prefer-source', 'p', InputOption::VALUE_NONE, 'Use the --prefer-source composer option'); } diff --git a/lib/Alchemy/Phrasea/Command/Developer/InstallAll.php b/lib/Alchemy/Phrasea/Command/Developer/InstallAll.php index 458f4959aa..8336a9b550 100644 --- a/lib/Alchemy/Phrasea/Command/Developer/InstallAll.php +++ b/lib/Alchemy/Phrasea/Command/Developer/InstallAll.php @@ -23,7 +23,7 @@ class InstallAll extends Command parent::__construct('dependencies:all'); $this - ->setDescription('Install all dependencies') + ->setDescription('Installs all dependencies') ->addOption('no-dev', 'd', InputOption::VALUE_NONE, 'Do not install dev dependencies') ->addOption('prefer-source', 'p', InputOption::VALUE_NONE, 'Use the --prefer-source composer option') ->addOption('attempts', 'a', InputOption::VALUE_REQUIRED, 'Number of attempts to install bower dependencies.', 4); diff --git a/lib/Alchemy/Phrasea/Command/Developer/JavascriptBuilder.php b/lib/Alchemy/Phrasea/Command/Developer/JavascriptBuilder.php index 1ec46ae58f..ad1b2802a3 100644 --- a/lib/Alchemy/Phrasea/Command/Developer/JavascriptBuilder.php +++ b/lib/Alchemy/Phrasea/Command/Developer/JavascriptBuilder.php @@ -26,7 +26,7 @@ class JavascriptBuilder extends Command { parent::__construct('assets:build-javascript'); - $this->setDescription('Compile less files'); + $this->setDescription('Builds Phraseanet JavaScript files'); } /** diff --git a/lib/Alchemy/Phrasea/Command/Developer/LessCompiler.php b/lib/Alchemy/Phrasea/Command/Developer/LessCompiler.php index 9666aae123..49a7d00f6e 100644 --- a/lib/Alchemy/Phrasea/Command/Developer/LessCompiler.php +++ b/lib/Alchemy/Phrasea/Command/Developer/LessCompiler.php @@ -24,7 +24,7 @@ class LessCompiler extends Command { parent::__construct('assets:compile-less'); - $this->setDescription('Compile less files'); + $this->setDescription('Compiles Phraseanet LESS files'); } /** diff --git a/lib/Alchemy/Phrasea/Command/Developer/RegenerateSqliteDb.php b/lib/Alchemy/Phrasea/Command/Developer/RegenerateSqliteDb.php index ff847a8cdc..aea31b7770 100644 --- a/lib/Alchemy/Phrasea/Command/Developer/RegenerateSqliteDb.php +++ b/lib/Alchemy/Phrasea/Command/Developer/RegenerateSqliteDb.php @@ -16,7 +16,7 @@ class RegenerateSqliteDb extends Command { parent::__construct('phraseanet:regenerate-sqlite'); - $this->setDescription("Update the sqlite 'tests/db-ref.sqlite' database with current database definition."); + $this->setDescription("Updates the sqlite 'tests/db-ref.sqlite' database with current database definition."); } public function doExecute(InputInterface $input, OutputInterface $output) diff --git a/lib/Alchemy/Phrasea/Command/Developer/RoutesDumper.php b/lib/Alchemy/Phrasea/Command/Developer/RoutesDumper.php index 4df5d90082..6035a63651 100644 --- a/lib/Alchemy/Phrasea/Command/Developer/RoutesDumper.php +++ b/lib/Alchemy/Phrasea/Command/Developer/RoutesDumper.php @@ -19,6 +19,8 @@ class RoutesDumper extends AbstractRoutesDumper public function __construct() { parent::__construct('routes:dump'); + + $this->setDescription('Dumps Phraseanet routes'); } protected function doExecute(InputInterface $input, OutputInterface $output) diff --git a/lib/Alchemy/Phrasea/Command/MailTest.php b/lib/Alchemy/Phrasea/Command/MailTest.php index 426f8522eb..d3e3fd4ff8 100644 --- a/lib/Alchemy/Phrasea/Command/MailTest.php +++ b/lib/Alchemy/Phrasea/Command/MailTest.php @@ -23,7 +23,9 @@ class MailTest extends Command { parent::__construct($name); - $this->addArgument('email', InputArgument::REQUIRED, 'An email where to send the test email'); + $this + ->setDescription('Sends an email to a given address to test mail-server configuration') + ->addArgument('email', InputArgument::REQUIRED, 'An email where to send the test email'); } protected function doExecute(InputInterface $input, OutputInterface $output) diff --git a/lib/Alchemy/Phrasea/Command/RecordAdd.php b/lib/Alchemy/Phrasea/Command/RecordAdd.php index 054c8bb76d..3d203df537 100644 --- a/lib/Alchemy/Phrasea/Command/RecordAdd.php +++ b/lib/Alchemy/Phrasea/Command/RecordAdd.php @@ -37,7 +37,7 @@ class RecordAdd extends Command { parent::__construct($name); - $this->setDescription('Add a record to Phraseanet') + $this->setDescription('Adds a record to Phraseanet') ->setHelp('') ->addArgument('base_id', InputArgument::REQUIRED, 'The target collection id', null) ->addArgument('file', InputArgument::REQUIRED, 'The file to archive', null) diff --git a/lib/Alchemy/Phrasea/Command/RescanTechnicalDatas.php b/lib/Alchemy/Phrasea/Command/RescanTechnicalDatas.php index a9cb1012dd..e0ecddf7b2 100644 --- a/lib/Alchemy/Phrasea/Command/RescanTechnicalDatas.php +++ b/lib/Alchemy/Phrasea/Command/RescanTechnicalDatas.php @@ -38,7 +38,7 @@ class RescanTechnicalDatas extends Command { parent::__construct($name); - $this->setDescription('Rescan databases for technical datas'); + $this->setDescription('Rescans records for technical datas'); $this->setHelp('Old Phraseanet version did not fully read technical datas. This command rescan all records of these datas.'); return $this; diff --git a/lib/Alchemy/Phrasea/Command/Setup/CheckEnvironment.php b/lib/Alchemy/Phrasea/Command/Setup/CheckEnvironment.php index df74f47997..b2f884812d 100644 --- a/lib/Alchemy/Phrasea/Command/Setup/CheckEnvironment.php +++ b/lib/Alchemy/Phrasea/Command/Setup/CheckEnvironment.php @@ -31,7 +31,7 @@ class CheckEnvironment extends AbstractCheckCommand { parent::__construct($name); - $this->setDescription("Check environment"); + $this->setDescription("Performs a check against the environment"); return $this; } diff --git a/lib/Alchemy/Phrasea/Command/Setup/Install.php b/lib/Alchemy/Phrasea/Command/Setup/Install.php index 4438a0ce09..619a94e2e1 100644 --- a/lib/Alchemy/Phrasea/Command/Setup/Install.php +++ b/lib/Alchemy/Phrasea/Command/Setup/Install.php @@ -30,7 +30,7 @@ class Install extends Command $this->executableFinder = new ExecutableFinder(); $this - ->setDescription("Install Phraseanet") + ->setDescription("Installs Phraseanet") ->addOption('email', null, InputOption::VALUE_OPTIONAL, 'Admin e-mail address', null) ->addOption('password', null, InputOption::VALUE_OPTIONAL, 'Admin password', null) ->addOption('db-host', null, InputOption::VALUE_OPTIONAL, 'MySQL server host', 'localhost') diff --git a/lib/Alchemy/Phrasea/Command/UpgradeDBDatas.php b/lib/Alchemy/Phrasea/Command/UpgradeDBDatas.php index bf724eaf22..ba8e2c377a 100644 --- a/lib/Alchemy/Phrasea/Command/UpgradeDBDatas.php +++ b/lib/Alchemy/Phrasea/Command/UpgradeDBDatas.php @@ -32,7 +32,7 @@ class UpgradeDBDatas extends Command parent::__construct($name); $this - ->setDescription("Upgrade Phraseanet datas") + ->setDescription("Upgrades Phraseanet datas, useful after migrations") ->setHelp(<<setDescription('List authors and contributors'); + $this->setDescription('Lists authors and contributors'); return $this; } diff --git a/lib/classes/module/console/aboutLicense.php b/lib/classes/module/console/aboutLicense.php index d9a11b4f9b..89310c7997 100644 --- a/lib/classes/module/console/aboutLicense.php +++ b/lib/classes/module/console/aboutLicense.php @@ -26,7 +26,7 @@ class module_console_aboutLicense extends Command { parent::__construct($name); - $this->setDescription('This program license'); + $this->setDescription('Displays this program license'); return $this; } diff --git a/lib/classes/module/console/checkExtension.php b/lib/classes/module/console/checkExtension.php index 5ecfc18f05..221fda15af 100644 --- a/lib/classes/module/console/checkExtension.php +++ b/lib/classes/module/console/checkExtension.php @@ -29,7 +29,7 @@ class module_console_checkExtension extends Command { parent::__construct($name); - $this->setDescription('Checks if the Phrasea PHP Extension is well installed & working properly.'); + $this->setDescription('Performs a serie of tests against Phrasea Engine PHP Extension'); $this->addArgument('usr_id', InputOption::VALUE_REQUIRED, 'Usr_id to use.'); diff --git a/lib/classes/module/console/fieldsDelete.php b/lib/classes/module/console/fieldsDelete.php index 0ccc900d8f..f2f7f9971d 100644 --- a/lib/classes/module/console/fieldsDelete.php +++ b/lib/classes/module/console/fieldsDelete.php @@ -27,7 +27,7 @@ class module_console_fieldsDelete extends Command { parent::__construct($name); - $this->setDescription('Delete a documentation field from a Databox'); + $this->setDescription('Deletes a documentation field from a Databox'); $this->addArgument('meta_struct_id', InputArgument::REQUIRED, 'Metadata structure id destination'); $this->addArgument('sbas_id', InputArgument::REQUIRED, 'Databox sbas_id'); diff --git a/lib/classes/module/console/fieldsList.php b/lib/classes/module/console/fieldsList.php index 21cce4badb..1096e8a180 100644 --- a/lib/classes/module/console/fieldsList.php +++ b/lib/classes/module/console/fieldsList.php @@ -26,7 +26,7 @@ class module_console_fieldsList extends Command { parent::__construct($name); - $this->setDescription('List all databoxes fields'); + $this->setDescription('Lists all databoxes documentation fields'); return $this; } diff --git a/lib/classes/module/console/fieldsMerge.php b/lib/classes/module/console/fieldsMerge.php index 87203b2a91..ae750629ea 100644 --- a/lib/classes/module/console/fieldsMerge.php +++ b/lib/classes/module/console/fieldsMerge.php @@ -28,7 +28,7 @@ class module_console_fieldsMerge extends Command { parent::__construct($name); - $this->setDescription('Merge databox structure fields'); + $this->setDescription('Merges databox documentation fields'); $this->addArgument('sbas_id', InputArgument::REQUIRED, 'Databox sbas_id'); $this->addArgument('destination', InputArgument::REQUIRED, 'Metadata structure id destination'); diff --git a/lib/classes/module/console/fieldsRename.php b/lib/classes/module/console/fieldsRename.php index 7a6bb55d3b..4f664c2493 100644 --- a/lib/classes/module/console/fieldsRename.php +++ b/lib/classes/module/console/fieldsRename.php @@ -27,7 +27,7 @@ class module_console_fieldsRename extends Command { parent::__construct($name); - $this->setDescription('Rename a documentation field from a Databox'); + $this->setDescription('Renames a documentation field from a Databox'); $this->addArgument('name', InputArgument::REQUIRED, 'The new name'); $this->addArgument('meta_struct_id', InputArgument::REQUIRED, 'Metadata structure id destination'); diff --git a/lib/classes/module/console/schedulerStart.php b/lib/classes/module/console/schedulerStart.php index a2ae7197d8..3dc9255bfd 100644 --- a/lib/classes/module/console/schedulerStart.php +++ b/lib/classes/module/console/schedulerStart.php @@ -29,7 +29,7 @@ class module_console_schedulerStart extends Command { parent::__construct($name); - $this->setDescription('Start the scheduler'); + $this->setDescription('Starts Phraseanet scheduler'); return $this; } diff --git a/lib/classes/module/console/schedulerState.php b/lib/classes/module/console/schedulerState.php index b9d23e914e..c5c1c144e0 100644 --- a/lib/classes/module/console/schedulerState.php +++ b/lib/classes/module/console/schedulerState.php @@ -36,7 +36,7 @@ class module_console_schedulerState extends Command { parent::__construct($name); - $this->setDescription('Get scheduler status'); + $this->setDescription('Returns Phraseanet scheduler status'); $this->addOption( 'short' diff --git a/lib/classes/module/console/schedulerStop.php b/lib/classes/module/console/schedulerStop.php index 10b6350c3f..bf142d068a 100644 --- a/lib/classes/module/console/schedulerStop.php +++ b/lib/classes/module/console/schedulerStop.php @@ -26,7 +26,7 @@ class module_console_schedulerStop extends Command { parent::__construct($name); - $this->setDescription('Stop the scheduler'); + $this->setDescription('Stops Phraseanet scheduler'); return $this; } diff --git a/lib/classes/module/console/sphinxGenerateSuggestion.php b/lib/classes/module/console/sphinxGenerateSuggestion.php index 86394eb07b..a68f5c2b75 100644 --- a/lib/classes/module/console/sphinxGenerateSuggestion.php +++ b/lib/classes/module/console/sphinxGenerateSuggestion.php @@ -28,7 +28,7 @@ class module_console_sphinxGenerateSuggestion extends Command { parent::__construct($name); - $this->setDescription('Generate suggestions for Sphinx Search Engine'); + $this->setDescription('Generates suggestions for Sphinx Search Engine, useful for query auto-completion'); return $this; } diff --git a/lib/classes/module/console/systemBackupDB.php b/lib/classes/module/console/systemBackupDB.php index 0f8a1aba98..b7401b5f75 100644 --- a/lib/classes/module/console/systemBackupDB.php +++ b/lib/classes/module/console/systemBackupDB.php @@ -34,7 +34,7 @@ class module_console_systemBackupDB extends Command ); $this - ->setDescription('Backup Phraseanet Databases') + ->setDescription('Backups Phraseanet Databases') ->addArgument('directory', null, 'The directory where to backup', $dir) ->addOption('timeout', 't', InputOption::VALUE_REQUIRED, 'The timeout for this command (default is 3600s / 1h). Set 0 to disable timeout.', 3600) ->addOption('gzip', 'g', null, 'Gzip the output (requires gzip utility)') diff --git a/lib/classes/module/console/systemClearCache.php b/lib/classes/module/console/systemClearCache.php index 36b857e481..8f294a890f 100644 --- a/lib/classes/module/console/systemClearCache.php +++ b/lib/classes/module/console/systemClearCache.php @@ -27,7 +27,7 @@ class module_console_systemClearCache extends Command { parent::__construct($name); - $this->setDescription('Empty cache directories, clear Memcached, Redis if avalaible'); + $this->setDescription('Empties cache directories and cache-server data'); return $this; } diff --git a/lib/classes/module/console/systemExport.php b/lib/classes/module/console/systemExport.php index 7462ae9c70..2c2dfceb27 100644 --- a/lib/classes/module/console/systemExport.php +++ b/lib/classes/module/console/systemExport.php @@ -27,7 +27,7 @@ class module_console_systemExport extends Command { parent::__construct($name); - $this->setDescription('Export all phraseanet records to a directory'); + $this->setDescription('Exports all phraseanet records to a given directory'); /** * To implement diff --git a/lib/classes/module/console/systemMailCheck.php b/lib/classes/module/console/systemMailCheck.php index e67f882588..59598048b8 100644 --- a/lib/classes/module/console/systemMailCheck.php +++ b/lib/classes/module/console/systemMailCheck.php @@ -27,7 +27,7 @@ class module_console_systemMailCheck extends Command { parent::__construct($name); - $this->setDescription('Check if email addresses are unique (mandatory since 3.5)'); + $this->setDescription('Checks if email addresses are uniques (mandatory since 3.5)'); $this->addOption('list' , 'l' , null diff --git a/lib/classes/module/console/systemTemplateGenerator.php b/lib/classes/module/console/systemTemplateGenerator.php index 105f5c6c79..428ed7c68d 100644 --- a/lib/classes/module/console/systemTemplateGenerator.php +++ b/lib/classes/module/console/systemTemplateGenerator.php @@ -28,7 +28,7 @@ class module_console_systemTemplateGenerator extends Command { parent::__construct($name); - $this->setDescription('Generate template files'); + $this->setDescription('Generates Twig templates files'); return $this; } diff --git a/lib/classes/module/console/systemUpgrade.php b/lib/classes/module/console/systemUpgrade.php index f5fbfab0f5..05827825e9 100644 --- a/lib/classes/module/console/systemUpgrade.php +++ b/lib/classes/module/console/systemUpgrade.php @@ -29,7 +29,7 @@ class module_console_systemUpgrade extends Command parent::__construct($name); $this - ->setDescription('Upgrade Phraseanet to the latest version') + ->setDescription('Upgrades Phraseanet to the latest version') ->addOption('yes', 'y', InputOption::VALUE_NONE, 'Answers yes to all questions and do not ask the user') ->addOption('force', 'f', InputOption::VALUE_NONE, 'Forces the upgrade even if there is a concurrent upgrade') ->addOption('dump', 'd', InputOption::VALUE_NONE, 'Dumps SQL queries that can be used to clean database.'); diff --git a/lib/classes/module/console/taskState.php b/lib/classes/module/console/taskState.php index c0889e91aa..ebd045bea3 100644 --- a/lib/classes/module/console/taskState.php +++ b/lib/classes/module/console/taskState.php @@ -45,7 +45,7 @@ class module_console_taskState extends Command $this->addArgument('task_id', InputArgument::REQUIRED, 'The task_id to test'); - $this->setDescription('Get task state'); + $this->setDescription('Returns a Phraseanet task state given its id'); $this->addOption( 'short' diff --git a/lib/classes/module/console/tasklist.php b/lib/classes/module/console/tasklist.php index 3cce50bd7d..972be70dfa 100644 --- a/lib/classes/module/console/tasklist.php +++ b/lib/classes/module/console/tasklist.php @@ -27,7 +27,7 @@ class module_console_tasklist extends Command { parent::__construct($name); - $this->setDescription('List tasks'); + $this->setDescription('Lists Phraseanet tasks'); return $this; } diff --git a/lib/classes/module/console/taskrun.php b/lib/classes/module/console/taskrun.php index 88d5df89c3..55cd6867f5 100644 --- a/lib/classes/module/console/taskrun.php +++ b/lib/classes/module/console/taskrun.php @@ -53,7 +53,7 @@ class module_console_taskrun extends Command 'threshold : (DEBUG|INFO|WARNING|ERROR|CRITICAL|ALERT)', '' ) - ->setDescription('Run task'); + ->setDescription('Runs a Phraseanet task given its id'); return $this; }