Skip to content

Commit 1d7c9a5

Browse files
committed
Fix #36973: Command description consistency
1 parent 5b5aefc commit 1d7c9a5

24 files changed

+46
-46
lines changed

Command/AboutCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class AboutCommand extends Command
3737
protected function configure()
3838
{
3939
$this
40-
->setDescription('Displays information about the current project')
40+
->setDescription('Display information about the current project')
4141
->setHelp(<<<'EOT'
4242
The <info>%command.name%</info> command displays information about the current Symfony project.
4343

Command/AssetsInstallCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ protected function configure()
6565
->setDefinition([
6666
new InputArgument('target', InputArgument::OPTIONAL, 'The target directory', null),
6767
])
68-
->addOption('symlink', null, InputOption::VALUE_NONE, 'Symlinks the assets instead of copying it')
68+
->addOption('symlink', null, InputOption::VALUE_NONE, 'Symlink the assets instead of copying them')
6969
->addOption('relative', null, InputOption::VALUE_NONE, 'Make relative symlinks')
7070
->addOption('no-cleanup', null, InputOption::VALUE_NONE, 'Do not remove the assets of the bundles that no longer exist')
71-
->setDescription('Installs bundles web assets under a public directory')
71+
->setDescription('Install bundle\'s web assets under a public directory')
7272
->setHelp(<<<'EOT'
7373
The <info>%command.name%</info> command installs bundle assets into a given
7474
directory (e.g. the <comment>public</comment> directory).

Command/CacheClearCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected function configure()
5757
new InputOption('no-warmup', '', InputOption::VALUE_NONE, 'Do not warm up the cache'),
5858
new InputOption('no-optional-warmers', '', InputOption::VALUE_NONE, 'Skip optional cache warmers (faster)'),
5959
])
60-
->setDescription('Clears the cache')
60+
->setDescription('Clear the cache')
6161
->setHelp(<<<'EOF'
6262
The <info>%command.name%</info> command clears the application cache for a given environment
6363
and debug mode:

Command/CachePoolClearCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function configure()
4747
->setDefinition([
4848
new InputArgument('pools', InputArgument::IS_ARRAY | InputArgument::REQUIRED, 'A list of cache pools or cache pool clearers'),
4949
])
50-
->setDescription('Clears cache pools')
50+
->setDescription('Clear cache pools')
5151
->setHelp(<<<'EOF'
5252
The <info>%command.name%</info> command clears the given cache pools or cache pool clearers.
5353

Command/CachePoolDeleteCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function configure()
4646
new InputArgument('pool', InputArgument::REQUIRED, 'The cache pool from which to delete an item'),
4747
new InputArgument('key', InputArgument::REQUIRED, 'The cache key to delete from the pool'),
4848
])
49-
->setDescription('Deletes an item from a cache pool')
49+
->setDescription('Delete an item from a cache pool')
5050
->setHelp(<<<'EOF'
5151
The <info>%command.name%</info> deletes an item from a given cache pool.
5252

Command/CachePoolPruneCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct(iterable $pools)
4444
protected function configure()
4545
{
4646
$this
47-
->setDescription('Prunes cache pools')
47+
->setDescription('Prune cache pools')
4848
->setHelp(<<<'EOF'
4949
The <info>%command.name%</info> command deletes all expired items from all pruneable pools.
5050

Command/CacheWarmupCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function configure()
4747
->setDefinition([
4848
new InputOption('no-optional-warmers', '', InputOption::VALUE_NONE, 'Skip optional cache warmers (faster)'),
4949
])
50-
->setDescription('Warms up an empty cache')
50+
->setDescription('Warm up an empty cache')
5151
->setHelp(<<<'EOF'
5252
The <info>%command.name%</info> command warms up the cache.
5353

Command/ConfigDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function configure()
4141
new InputArgument('name', InputArgument::OPTIONAL, 'The bundle name or the extension alias'),
4242
new InputArgument('path', InputArgument::OPTIONAL, 'The configuration option path'),
4343
])
44-
->setDescription('Dumps the current configuration for an extension')
44+
->setDescription('Dump the current configuration for an extension')
4545
->setHelp(<<<'EOF'
4646
The <info>%command.name%</info> command dumps the current configuration for an
4747
extension/bundle.

Command/ConfigDumpReferenceCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected function configure()
4444
new InputArgument('path', InputArgument::OPTIONAL, 'The configuration option path'),
4545
new InputOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (yaml or xml)', 'yaml'),
4646
])
47-
->setDescription('Dumps the default configuration for an extension')
47+
->setDescription('Dump the default configuration for an extension')
4848
->setHelp(<<<'EOF'
4949
The <info>%command.name%</info> command dumps the default configuration for an
5050
extension/bundle.

Command/ContainerDebugCommand.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@ protected function configure()
5151
$this
5252
->setDefinition([
5353
new InputArgument('name', InputArgument::OPTIONAL, 'A service name (foo)'),
54-
new InputOption('show-private', null, InputOption::VALUE_NONE, 'Used to show public *and* private services (deprecated)'),
55-
new InputOption('show-arguments', null, InputOption::VALUE_NONE, 'Used to show arguments in services'),
56-
new InputOption('show-hidden', null, InputOption::VALUE_NONE, 'Used to show hidden (internal) services'),
57-
new InputOption('tag', null, InputOption::VALUE_REQUIRED, 'Shows all services with a specific tag'),
58-
new InputOption('tags', null, InputOption::VALUE_NONE, 'Displays tagged services for an application'),
59-
new InputOption('parameter', null, InputOption::VALUE_REQUIRED, 'Displays a specific parameter for an application'),
60-
new InputOption('parameters', null, InputOption::VALUE_NONE, 'Displays parameters for an application'),
61-
new InputOption('types', null, InputOption::VALUE_NONE, 'Displays types (classes/interfaces) available in the container'),
62-
new InputOption('env-var', null, InputOption::VALUE_REQUIRED, 'Displays a specific environment variable used in the container'),
63-
new InputOption('env-vars', null, InputOption::VALUE_NONE, 'Displays environment variables used in the container'),
54+
new InputOption('show-private', null, InputOption::VALUE_NONE, 'Show public *and* private services (deprecated)'),
55+
new InputOption('show-arguments', null, InputOption::VALUE_NONE, 'Show arguments in services'),
56+
new InputOption('show-hidden', null, InputOption::VALUE_NONE, 'Show hidden (internal) services'),
57+
new InputOption('tag', null, InputOption::VALUE_REQUIRED, 'Show all services with a specific tag'),
58+
new InputOption('tags', null, InputOption::VALUE_NONE, 'Display tagged services for an application'),
59+
new InputOption('parameter', null, InputOption::VALUE_REQUIRED, 'Display a specific parameter for an application'),
60+
new InputOption('parameters', null, InputOption::VALUE_NONE, 'Display parameters for an application'),
61+
new InputOption('types', null, InputOption::VALUE_NONE, 'Display types (classes/interfaces) available in the container'),
62+
new InputOption('env-var', null, InputOption::VALUE_REQUIRED, 'Display a specific environment variable used in the container'),
63+
new InputOption('env-vars', null, InputOption::VALUE_NONE, 'Display environment variables used in the container'),
6464
new InputOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (txt, xml, json, or md)', 'txt'),
6565
new InputOption('raw', null, InputOption::VALUE_NONE, 'To output raw description'),
6666
])
67-
->setDescription('Displays current services for an application')
67+
->setDescription('Display current services for an application')
6868
->setHelp(<<<'EOF'
6969
The <info>%command.name%</info> command displays all configured <comment>public</comment> services:
7070

0 commit comments

Comments
 (0)