Skip to content

Commit 8adfe3c

Browse files
committed
Merge pull request #284 from tiborb/description
Added more command descriptions
2 parents a71652c + e59622e commit 8adfe3c

7 files changed

+8
-4
lines changed

Command/AnonConsumerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ protected function configure()
1010
parent::configure();
1111

1212
$this->setName('rabbitmq:anon-consumer');
13-
13+
$this->setDescription('Executes an anonymous consumer');
1414
$this->getDefinition()->getOption('messages')->setDefault(1);
1515
$this->getDefinition()->getOption('route')->setDefault('#');
1616

Command/ConsumerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ConsumerCommand extends BaseConsumerCommand
88
protected function configure()
99
{
1010
parent::configure();
11-
11+
$this->setDescription('Executes a consumer');
1212
$this->setName('rabbitmq:consumer');
1313
}
1414

Command/DynamicConsumerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected function configure()
2121

2222
$this
2323
->setName('rabbitmq:dynamic-consumer')
24-
->setDescription('Context-aware consumer')
24+
->setDescription('Executes context-aware consumer')
2525
->addArgument('context', InputArgument::REQUIRED, 'Context the consumer runs in')
2626
;
2727
}

Command/MultipleConsumerCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ class MultipleConsumerCommand extends BaseConsumerCommand
88
protected function configure()
99
{
1010
parent::configure();
11-
11+
12+
$this->setDescription('Executes a consumer that uses multiple queues');
1213
$this->setName('rabbitmq:multiple-consumer');
1314
}
1415

Command/PurgeConsumerCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class PurgeConsumerCommand extends ConsumerCommand
1515
protected function configure()
1616
{
1717
$this->addArgument('name', InputArgument::REQUIRED, 'Consumer Name')
18+
->setDescription('Purge a consumer\'s queue')
1819
->addOption('no-confirmation', null, InputOption::VALUE_NONE, 'Whether it must be confirmed before purging');
1920

2021
$this->setName('rabbitmq:purge');

Command/RpcServerCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ protected function configure()
1616

1717
$this
1818
->setName('rabbitmq:rpc-server')
19+
->setDescription('Start an RPC server')
1920
->addArgument('name', InputArgument::REQUIRED, 'Server Name')
2021
->addOption('messages', 'm', InputOption::VALUE_OPTIONAL, 'Messages to consume', 0)
2122
->addOption('debug', 'd', InputOption::VALUE_OPTIONAL, 'Debug mode', false)

Command/StdInProducerCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ protected function configure()
1919
$this
2020
->setName('rabbitmq:stdin-producer')
2121
->addArgument('name', InputArgument::REQUIRED, 'Producer Name')
22+
->setDescription('Executes a consumer that reads data from STDIN')
2223
->addOption('route', 'r', InputOption::VALUE_OPTIONAL, 'Routing Key', '')
2324
->addOption('format', 'f', InputOption::VALUE_OPTIONAL, 'Payload Format', self::FORMAT_PHP)
2425
->addOption('debug', 'd', InputOption::VALUE_OPTIONAL, 'Enable Debugging', false)

0 commit comments

Comments
 (0)