| @@ 13-28 (lines=16) @@ | ||
| 10 | ||
| 11 | class ListCommand extends AbstractCustomerCommand |
|
| 12 | { |
|
| 13 | protected function configure() |
|
| 14 | { |
|
| 15 | $this |
|
| 16 | ->setName('customer:list') |
|
| 17 | ->setDescription('Lists all magento customers') |
|
| 18 | ->addArgument('search', InputArgument::OPTIONAL, 'Search query') |
|
| 19 | ->addOption( |
|
| 20 | 'format', null, InputOption::VALUE_OPTIONAL, |
|
| 21 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
| 22 | ); |
|
| 23 | ||
| 24 | $help = <<<HELP |
|
| 25 | Lists all Magento Customers of current installation. |
|
| 26 | HELP; |
|
| 27 | $this->setHelp($help); |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @param \Symfony\Component\Console\Input\InputInterface $input |
|
| @@ 13-34 (lines=22) @@ | ||
| 10 | ||
| 11 | class InfoCommand extends AbstractDatabaseCommand |
|
| 12 | { |
|
| 13 | protected function configure() |
|
| 14 | { |
|
| 15 | $this |
|
| 16 | ->setName('db:info') |
|
| 17 | ->addArgument('setting', InputArgument::OPTIONAL, 'Only output value of named setting') |
|
| 18 | ->setDescription('Dumps database informations') |
|
| 19 | ->addOption( |
|
| 20 | 'format', |
|
| 21 | null, |
|
| 22 | InputOption::VALUE_OPTIONAL, |
|
| 23 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
| 24 | ) |
|
| 25 | ; |
|
| 26 | $this->addDeprecatedAlias('database:info', 'Please use db:info'); |
|
| 27 | ||
| 28 | $help = <<<HELP |
|
| 29 | This command is useful to print all informations about the current configured database in app/etc/local.xml. |
|
| 30 | It can print connection string for JDBC, PDO connections. |
|
| 31 | HELP; |
|
| 32 | $this->setHelp($help); |
|
| 33 | ||
| 34 | } |
|
| 35 | ||
| 36 | /** |
|
| 37 | * @param \Symfony\Component\Console\Input\InputInterface $input |
|
| @@ 18-35 (lines=18) @@ | ||
| 15 | * |
|
| 16 | * @return void |
|
| 17 | */ |
|
| 18 | protected function configure() |
|
| 19 | { |
|
| 20 | $this |
|
| 21 | ->setName('giftcard:info') |
|
| 22 | ->addArgument('code', \Symfony\Component\Console\Input\InputArgument::REQUIRED, 'Gift card code') |
|
| 23 | ->addOption( |
|
| 24 | 'format', |
|
| 25 | null, |
|
| 26 | InputOption::VALUE_OPTIONAL, |
|
| 27 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
| 28 | ) |
|
| 29 | ->setDescription('Get gift card account information by code'); |
|
| 30 | ||
| 31 | $help = <<<HELP |
|
| 32 | Get gift card account information by code |
|
| 33 | HELP; |
|
| 34 | $this->setHelp($help); |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * @param \Symfony\Component\Console\Input\InputInterface $input |
|