@@ 18-30 (lines=13) @@ | ||
15 | */ |
|
16 | protected $infos; |
|
17 | ||
18 | protected function configure() |
|
19 | { |
|
20 | $this |
|
21 | ->setName('sys:cron:list') |
|
22 | ->setDescription('Lists all cronjobs') |
|
23 | ->addOption( |
|
24 | 'format', |
|
25 | null, |
|
26 | InputOption::VALUE_OPTIONAL, |
|
27 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
28 | ) |
|
29 | ; |
|
30 | } |
|
31 | ||
32 | /** |
|
33 | * @param InputInterface $input |
@@ 13-25 (lines=13) @@ | ||
10 | ||
11 | class ListCommand extends AbstractAdminUserCommand |
|
12 | { |
|
13 | protected function configure() |
|
14 | { |
|
15 | $this |
|
16 | ->setName('admin:user:list') |
|
17 | ->setDescription('List admin users.') |
|
18 | ->addOption( |
|
19 | 'format', |
|
20 | null, |
|
21 | InputOption::VALUE_OPTIONAL, |
|
22 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
23 | ) |
|
24 | ; |
|
25 | } |
|
26 | ||
27 | /** |
|
28 | * @param InputInterface $input |
@@ 13-25 (lines=13) @@ | ||
10 | ||
11 | class ListCommand extends AbstractCacheCommand |
|
12 | { |
|
13 | protected function configure() |
|
14 | { |
|
15 | $this |
|
16 | ->setName('cache:list') |
|
17 | ->setDescription('Lists all magento caches') |
|
18 | ->addOption( |
|
19 | 'format', |
|
20 | null, |
|
21 | InputOption::VALUE_OPTIONAL, |
|
22 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
23 | ) |
|
24 | ; |
|
25 | } |
|
26 | ||
27 | /** |
|
28 | * @param InputInterface $input |
@@ 23-35 (lines=13) @@ | ||
20 | ||
21 | class UsageCommand extends AbstractMagentoCommand |
|
22 | { |
|
23 | protected function configure() |
|
24 | { |
|
25 | $this |
|
26 | ->setName('dev:email-template:usage') |
|
27 | ->setDescription('Display database transactional email template usage') |
|
28 | ->addOption( |
|
29 | 'format', |
|
30 | null, |
|
31 | InputOption::VALUE_OPTIONAL, |
|
32 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
33 | ); |
|
34 | } |
|
35 | ||
36 | /** |
|
37 | * @param InputInterface $input |
|
38 | * @param OutputInterface $output |
@@ 13-25 (lines=13) @@ | ||
10 | ||
11 | class ListCommand extends AbstractRewriteCommand |
|
12 | { |
|
13 | protected function configure() |
|
14 | { |
|
15 | $this |
|
16 | ->setName('dev:module:rewrite:list') |
|
17 | ->setDescription('Lists all magento rewrites') |
|
18 | ->addOption( |
|
19 | 'format', |
|
20 | null, |
|
21 | InputOption::VALUE_OPTIONAL, |
|
22 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
23 | ) |
|
24 | ; |
|
25 | } |
|
26 | ||
27 | /** |
|
28 | * @param InputInterface $input |
@@ 14-26 (lines=13) @@ | ||
11 | ||
12 | class ListCommand extends AbstractMagentoCommand |
|
13 | { |
|
14 | protected function configure() |
|
15 | { |
|
16 | $this |
|
17 | ->setName('dev:theme:list') |
|
18 | ->setDescription('Lists all available themes') |
|
19 | ->addOption( |
|
20 | 'format', |
|
21 | null, |
|
22 | InputOption::VALUE_OPTIONAL, |
|
23 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
24 | ) |
|
25 | ; |
|
26 | } |
|
27 | ||
28 | /** |
|
29 | * @param InputInterface $input |
@@ 19-31 (lines=13) @@ | ||
16 | * |
|
17 | * @return void |
|
18 | */ |
|
19 | protected function configure() |
|
20 | { |
|
21 | $this |
|
22 | ->setName('giftcard:info') |
|
23 | ->addArgument('code', \Symfony\Component\Console\Input\InputArgument::REQUIRED, 'Gift card code') |
|
24 | ->addOption( |
|
25 | 'format', |
|
26 | null, |
|
27 | InputOption::VALUE_OPTIONAL, |
|
28 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
29 | ) |
|
30 | ->setDescription('Get gift card account information by code'); |
|
31 | } |
|
32 | ||
33 | /** |
|
34 | * @param InputInterface $input |
@@ 13-30 (lines=18) @@ | ||
10 | ||
11 | class ListCommand extends AbstractIndexerCommand |
|
12 | { |
|
13 | protected function configure() |
|
14 | { |
|
15 | $this |
|
16 | ->setName('index:list') |
|
17 | ->setDescription('Lists all magento indexes') |
|
18 | ->addOption( |
|
19 | 'format', |
|
20 | null, |
|
21 | InputOption::VALUE_OPTIONAL, |
|
22 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
23 | ) |
|
24 | ; |
|
25 | ||
26 | $help = <<<HELP |
|
27 | Lists all Magento indexers of current installation. |
|
28 | HELP; |
|
29 | $this->setHelp($help); |
|
30 | } |
|
31 | ||
32 | /** |
|
33 | * @param InputInterface $input |
@@ 13-30 (lines=18) @@ | ||
10 | ||
11 | class ListMviewCommand extends AbstractMviewIndexerCommand |
|
12 | { |
|
13 | protected function configure() |
|
14 | { |
|
15 | $this |
|
16 | ->setName('index:list:mview') |
|
17 | ->setDescription('Lists all magento mview indexes') |
|
18 | ->addOption( |
|
19 | 'format', |
|
20 | null, |
|
21 | InputOption::VALUE_OPTIONAL, |
|
22 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
23 | ) |
|
24 | ; |
|
25 | ||
26 | $help = <<<HELP |
|
27 | Lists all Magento mview indexers of current installation. |
|
28 | HELP; |
|
29 | $this->setHelp($help); |
|
30 | } |
|
31 | ||
32 | /** |
|
33 | * @param InputInterface $input |
@@ 13-39 (lines=27) @@ | ||
10 | ||
11 | class ListCommand extends AbstractRepositoryCommand |
|
12 | { |
|
13 | protected function configure() |
|
14 | { |
|
15 | $this |
|
16 | ->setName('script:repo:list') |
|
17 | ->setDescription('Lists all scripts in repository') |
|
18 | ->addOption( |
|
19 | 'format', |
|
20 | null, |
|
21 | InputOption::VALUE_OPTIONAL, |
|
22 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
23 | ) |
|
24 | ; |
|
25 | ||
26 | $help = <<<HELP |
|
27 | You can organize your scripts in a repository. |
|
28 | Simply place a script in folder */usr/local/share/n98-magerun/scripts* or in your home dir |
|
29 | in folder *<HOME>/.n98-magerun/scripts*. |
|
30 | ||
31 | Scripts must have the file extension *.magerun*. |
|
32 | ||
33 | After that you can list all scripts with the *script:repo:list* command. |
|
34 | The first line of the script can contain a comment (line prefixed with #) which will be displayed as description. |
|
35 | ||
36 | $ n98-magerun.phar script:repo:list |
|
37 | HELP; |
|
38 | $this->setHelp($help); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * @param InputInterface $input |
@@ 32-51 (lines=20) @@ | ||
29 | */ |
|
30 | private $config; |
|
31 | ||
32 | protected function configure() |
|
33 | { |
|
34 | $this |
|
35 | ->setName('sys:check') |
|
36 | ->setDescription('Checks Magento System') |
|
37 | ->addOption( |
|
38 | 'format', |
|
39 | null, |
|
40 | InputOption::VALUE_OPTIONAL, |
|
41 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
42 | ); |
|
43 | ||
44 | $help = <<<HELP |
|
45 | - Checks missing files and folders |
|
46 | - Security |
|
47 | - PHP Extensions (Required and Bytecode Cache) |
|
48 | - MySQL InnoDB Engine |
|
49 | HELP; |
|
50 | $this->setHelp($help); |
|
51 | } |
|
52 | ||
53 | /** |
|
54 | * @param InputInterface $input |
@@ 23-39 (lines=17) @@ | ||
20 | */ |
|
21 | protected $infos; |
|
22 | ||
23 | protected function configure() |
|
24 | { |
|
25 | $this |
|
26 | ->setName('sys:info') |
|
27 | ->addArgument( |
|
28 | 'key', |
|
29 | InputArgument::OPTIONAL, |
|
30 | 'Only output value of named param like "version". Key is case insensitive.' |
|
31 | )->setDescription('Prints infos about the current magento system.') |
|
32 | ->addOption( |
|
33 | 'format', |
|
34 | null, |
|
35 | InputOption::VALUE_OPTIONAL, |
|
36 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
37 | ) |
|
38 | ; |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * @param InputInterface $input |
@@ 14-26 (lines=13) @@ | ||
11 | ||
12 | class BaseUrlListCommand extends AbstractMagentoCommand |
|
13 | { |
|
14 | protected function configure() |
|
15 | { |
|
16 | $this |
|
17 | ->setName('sys:store:config:base-url:list') |
|
18 | ->setDescription('Lists all base urls') |
|
19 | ->addOption( |
|
20 | 'format', |
|
21 | null, |
|
22 | InputOption::VALUE_OPTIONAL, |
|
23 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
24 | ) |
|
25 | ; |
|
26 | } |
|
27 | ||
28 | /** |
|
29 | * @param InputInterface $input |
@@ 19-31 (lines=13) @@ | ||
16 | */ |
|
17 | protected $infos; |
|
18 | ||
19 | protected function configure() |
|
20 | { |
|
21 | $this |
|
22 | ->setName('sys:store:list') |
|
23 | ->setDescription('Lists all installed store-views') |
|
24 | ->addOption( |
|
25 | 'format', |
|
26 | null, |
|
27 | InputOption::VALUE_OPTIONAL, |
|
28 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
29 | ) |
|
30 | ; |
|
31 | } |
|
32 | ||
33 | /** |
|
34 | * @param InputInterface $input |
@@ 19-31 (lines=13) @@ | ||
16 | */ |
|
17 | protected $infos; |
|
18 | ||
19 | protected function configure() |
|
20 | { |
|
21 | $this |
|
22 | ->setName('sys:website:list') |
|
23 | ->setDescription('Lists all websites') |
|
24 | ->addOption( |
|
25 | 'format', |
|
26 | null, |
|
27 | InputOption::VALUE_OPTIONAL, |
|
28 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
29 | ) |
|
30 | ; |
|
31 | } |
|
32 | ||
33 | /** |
|
34 | * @param InputInterface $input |
@@ 22-34 (lines=13) @@ | ||
19 | /** |
|
20 | * Configure command |
|
21 | */ |
|
22 | protected function configure() |
|
23 | { |
|
24 | $this |
|
25 | ->setName('cms:block:list') |
|
26 | ->setDescription('List all cms blocks') |
|
27 | ->addOption( |
|
28 | 'format', |
|
29 | null, |
|
30 | InputOption::VALUE_OPTIONAL, |
|
31 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
32 | ) |
|
33 | ; |
|
34 | } |
|
35 | ||
36 | /** |
|
37 | * Get an instance of cms/block |