Fix #1242 : Commands description check, move generate:template command to developer console

This commit is contained in:
Romain Neutron
2013-07-17 20:14:23 +02:00
parent 6d30f9bc9d
commit 899549d45a
41 changed files with 47 additions and 39 deletions

View File

@@ -26,7 +26,7 @@ class module_console_aboutAuthors extends Command
{
parent::__construct($name);
$this->setDescription('List authors and contributors');
$this->setDescription('Lists authors and contributors');
return $this;
}

View File

@@ -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;
}

View File

@@ -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.');

View File

@@ -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');

View File

@@ -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;
}

View File

@@ -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');

View File

@@ -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');

View File

@@ -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;
}

View File

@@ -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'

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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)')

View File

@@ -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;
}

View File

@@ -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

View File

@@ -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

View File

@@ -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;
}

View File

@@ -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.');

View File

@@ -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'

View File

@@ -27,7 +27,7 @@ class module_console_tasklist extends Command
{
parent::__construct($name);
$this->setDescription('List tasks');
$this->setDescription('Lists Phraseanet tasks');
return $this;
}

View File

@@ -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;
}