getFormats() public static method

public static getFormats ( ) : array
return array
    protected function configure()
    {
        $help = <<<'HELP'
<comment>TYPE OPTIONS</comment>

<info>QUICK</info>
            Do not scan the rows to check for incorrect links.
            Applies to InnoDB and MyISAM tables and views.
<info>FAST</info>
            Check only tables that have not been closed properly.
            Applies only to MyISAM tables and views; ignored for InnoDB.
<info>CHANGED</info>
            Check only tables that have been changed since the last check or that
            have not been closed properly. Applies only to MyISAM tables and views;
            ignored for InnoDB.
<info>MEDIUM</info>
            Scan rows to verify that deleted links are valid.
            This also calculates a key checksum for the rows and verifies this with a
            calculated checksum for the keys. Applies only to MyISAM tables and views;
            ignored for InnoDB.
<info>EXTENDED</info>
            Do a full key lookup for all keys for each row. This ensures that the table
            is 100% consistent, but takes a long time.
            Applies only to MyISAM tables and views; ignored for InnoDB.

<comment>InnoDB</comment>
            InnoDB tables will be optimized with the ALTER TABLE ... ENGINE=InnoDB statement.
            The options above do not apply to them.
HELP;
        $this->setName('db:maintain:check-tables')->setDescription('Check database tables')->addOption('type', null, InputOption::VALUE_OPTIONAL, 'Check type (one of QUICK, FAST, MEDIUM, EXTENDED, CHANGED)', 'MEDIUM')->addOption('repair', null, InputOption::VALUE_NONE, 'Repair tables (only MyISAM)')->addOption('table', null, InputOption::VALUE_OPTIONAL, 'Process only given table (wildcards are supported)')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']')->setHelp($help);
    }
    protected function configure()
    {
        $this->setName('sys:setup:compare-versions')->addOption('ignore-data', null, InputOption::VALUE_NONE, 'Ignore data updates')->addOption('log-junit', null, InputOption::VALUE_REQUIRED, 'Log output to a JUnit xml file.')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']')->setDescription('Compare module version with core_resource table.');
        $help = <<<HELP
Compares module version with saved setup version in `core_resource` table and displays version mismatch.
HELP;
        $this->setHelp($help);
    }
Example #3
0
    protected function configure()
    {
        $this->setName('customer:list')->setDescription('Lists all magento customers')->addArgument('search', InputArgument::OPTIONAL, 'Search query')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
        $help = <<<HELP
Lists all Magento Customers of current installation.
HELP;
        $this->setHelp($help);
    }
Example #4
0
    protected function configure()
    {
        $this->setName('index:list')->setDescription('Lists all magento indexes')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
        $help = <<<HELP
Lists all Magento indexers of current installation.
HELP;
        $this->setHelp($help);
    }
Example #5
0
    /**
     * Setup
     * 
     * @return void
     */
    protected function configure()
    {
        $this->setName('giftcard:info')->addArgument('code', \Symfony\Component\Console\Input\InputArgument::REQUIRED, 'Gift card code')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']')->setDescription('Get gift card account information by code');
        $help = <<<HELP
Get gift card account information by code
HELP;
        $this->setHelp($help);
    }
    protected function configure()
    {
        $this->setName('extension:list')->setAliases(array('extension:search'))->addArgument('search', InputArgument::OPTIONAL, 'Search string')->setDescription('List magento connection extensions')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
        $help = <<<HELP
* Requires Magento's `mage` shell script.
* Does not work with Windows as operating system.
HELP;
        $this->setHelp($help);
    }
Example #7
0
    protected function configure()
    {
        $this->setName('customer:list')->addArgument('search', InputArgument::OPTIONAL, 'Search query')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']')->setDescription('Lists customers');
        $help = <<<HELP
List customers. The output is limited to 1000 (can be changed by overriding config).
If search parameter is given the customers are filtered (searchs in firstname, lastname and email).
HELP;
        $this->setHelp($help);
    }
Example #8
0
    protected function configure()
    {
        $this->setName('db:info')->addArgument('setting', InputArgument::OPTIONAL, 'Only output value of named setting')->addDeprecatedAlias('database:info', 'Please use db:info')->setDescription('Dumps database informations')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
        $help = <<<HELP
This command is useful to print all informations about the current configured database in app/etc/local.xml.
It can print connection string for JDBC, PDO connections.
HELP;
        $this->setHelp($help);
    }
Example #9
0
    protected function configure()
    {
        $this->setName('sys:check')->setDescription('Checks Magento System')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
        $help = <<<HELP
- Checks missing files and folders
- Security
- PHP Extensions (Required and Bytecode Cache)
- MySQL InnoDB Engine
HELP;
        $this->setHelp($help);
    }
Example #10
0
    protected function configure()
    {
        $this->setName('script:repo:list')->setDescription('Lists all scripts in repository')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
        $help = <<<HELP
You can organize your scripts in a repository.
Simply place a script in folder */usr/local/share/n98-magerun/scripts* or in your home dir
in folder *<HOME>/.n98-magerun/scripts*.

Scripts must have the file extension *.magerun*.

After that you can list all scripts with the *script:repo:list* command.
The first line of the script can contain a comment (line prefixed with #) which will be displayed as description.

   \$ n98-magerun.phar script:repo:list
HELP;
        $this->setHelp($help);
    }
    protected function configure()
    {
        $this->setName('config:get')->setDescription('Get a core config item')->setHelp(<<<EOT
If <info>path</info> is not set, all available config items will be listed.
The <info>path</info> may contain wildcards (*).
If <info>path</info> ends with a trailing slash, all child items will be listed. E.g.

    config:get web/ 
is the same as
    config:get web/*
EOT
)->addArgument('path', InputArgument::OPTIONAL, 'The config path')->addOption('scope', null, InputOption::VALUE_REQUIRED, 'The config value\'s scope')->addOption('scope-id', null, InputOption::VALUE_REQUIRED, 'The config value\'s scope ID')->addOption('decrypt', null, InputOption::VALUE_NONE, 'Decrypt the config value using local.xml\'s crypt key')->addOption('update-script', null, InputOption::VALUE_NONE, 'Output as update script lines')->addOption('magerun-script', null, InputOption::VALUE_NONE, 'Output for usage with config:set')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
        $help = <<<HELP
If path is not set, all available config items will be listed. path may contain wildcards (*)
HELP;
        $this->setHelp($help);
    }
    protected function configure()
    {
        $help = <<<HELP
Supported Locales:

- cs_CZ
- ru_RU
- bg_BG
- en_US
- it_IT
- sr_RS
- sr_Cyrl_RS
- sr_Latn_RS
- pl_PL
- en_GB
- de_DE
- sk_SK
- fr_FR
- es_AR
- de_AT
HELP;
        $this->setName('customer:create:dummy')->addArgument('count', InputArgument::REQUIRED, 'Count')->addArgument('locale', InputArgument::REQUIRED, 'Locale')->addArgument('website', InputArgument::OPTIONAL, 'Website')->addOption('with-addresses', null, InputOption::VALUE_NONE, 'Create dummy billing/shipping addresses for each customers')->setDescription('Generate dummy customers. You can specify a count and a locale.')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']')->setHelp($help);
    }
 protected function configure()
 {
     $this->setName('hypernode:modules:list-updates')->addOption('codepool', null, InputOption::VALUE_OPTIONAL, 'Show modules in a specific codepool')->addOption('status', null, InputOption::VALUE_OPTIONAL, 'Show modules with a specific status')->addOption('vendor', null, InputOption::VALUE_OPTIONAL, 'Show modules of a specified vendor')->setDescription('Find available updates for installed modules.')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
 }
Example #14
0
 protected function configure()
 {
     $this->setName('sys:store:list')->setDescription('Lists all installed store-views')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
 }
 protected function configure()
 {
     $this->setName('mpmd:codepooloverrides')->addArgument('htmlReportOutputPath', InputArgument::OPTIONAL, 'Path to where the HTML report will be written')->addArgument('skipDirectories', InputArgument::OPTIONAL, '\'' . PATH_SEPARATOR . '\'-separated list of directories that will not be considered (defaults to \'.svn' . PATH_SEPARATOR . '.git\')')->setDescription('Find all code pool overrides')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
 }
Example #16
0
 protected function configure()
 {
     $this->setName('cache:report')->setDescription('View inside the cache')->addOption('tags', 't', InputOption::VALUE_NONE, 'Output tags')->addOption('mtime', 'm', InputOption::VALUE_NONE, 'Output last modification time')->addOption('filter-id', '', InputOption::VALUE_OPTIONAL, 'Filter output by ID (substring)')->addOption('filter-tag', '', InputOption::VALUE_OPTIONAL, 'Filter output by TAG (seperate multiple tags by comma)')->addOption('fpc', null, InputOption::VALUE_NONE, 'Use full page cache instead of core cache (Enterprise only!)')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
 }
Example #17
0
 protected function configure()
 {
     $this->setName('dev:module:observer:list')->addArgument('type', InputArgument::OPTIONAL, 'Observer type (global, admin, frontend, crontab)')->setDescription('Lists all registered observers')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']')->addOption('sort', null, InputOption::VALUE_NONE, 'Sort by event name ascending');
 }
Example #18
0
 protected function configure()
 {
     $this->setName('sys:info')->addArgument('key', InputArgument::OPTIONAL, 'Only output value of named param like "version". Key is case insensitive.')->setDescription('Prints infos about the current magento system.')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
 }
 /**
  * Configure command
  */
 protected function configure()
 {
     $this->setName(static::COMMAND_NAME)->addArgument('moduleName', InputArgument::REQUIRED, 'Module to show dependencies')->addOption('all', 'a', InputOption::VALUE_NONE, 'Show all dependencies (dependencies of dependencies)')->setDescription(static::COMMAND_DESCRIPTION)->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
 }
Example #20
0
 protected function configure()
 {
     $this->setName('dev:module:dependencies:on')->addArgument('moduleName', InputArgument::REQUIRED, 'Module to show dependencies')->addOption('all', 'a', InputOption::VALUE_NONE, 'Show all dependencies (dependencies of dependencies)')->setDescription('Show list of modules which given module depends on')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
 }
 protected function configure()
 {
     $this->setName('dev:module:list')->addOption('vendor', null, InputOption::VALUE_OPTIONAL, 'Show modules of a specific vendor (case insensitive)')->setDescription('List all installed modules')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
 }
Example #22
0
 protected function configure()
 {
     $this->setName('dev:theme:list')->setDescription('Lists all available themes')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
 }
Example #23
0
 protected function configure()
 {
     $this->setName('sys:cron:history')->setDescription('Last executed cronjobs with status.')->addOption('timezone', null, InputOption::VALUE_OPTIONAL, 'Timezone to show finished at in')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
 }
 protected function configure()
 {
     $this->setName('admin:role:list')->setDescription('List admin roles.')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
 }
 protected function configure()
 {
     $this->addArgument('search', InputArgument::OPTIONAL, 'Only output variables of specified name. The wildcard % is supported!')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']')->addOption('rounding', null, InputOption::VALUE_OPTIONAL, 'Amount of decimals to display. If -1 then disabled', 0)->addOption('no-description', null, InputOption::VALUE_NONE, 'Disable description');
 }
 protected function configure()
 {
     $this->setName('cache:list')->setDescription('Lists all magento caches')->addOption('enabled', null, InputOption::VALUE_OPTIONAL, 'Filter the list to display only enabled [1] or disabled [0] cache types')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
 }
 /**
  * Configure Command
  */
 protected function configure()
 {
     $this->setName('hypernode:performance')->setDescription('Generate a performance report based on sitemaps.')->addOption('sitemap', null, InputOption::VALUE_OPTIONAL, '(string) path or URL.', false)->addOption('current-url', null, InputOption::VALUE_OPTIONAL, 'Url of current instance. (needle for replacement)', false)->addOption('compare-url', null, InputOption::VALUE_OPTIONAL, 'The URL to compare with.', false)->addOption('silent', null, InputOption::VALUE_NONE, 'Disables all messages, outputs results in JSON.', null)->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Format for file output result [' . implode(',', RendererFactory::getFormats()) . '] (default console table)', false)->addOption('limit', null, InputOption::VALUE_OPTIONAL, 'Limits the amount of requests to curl.', false)->addOption('totaltime', null, InputOption::VALUE_NONE, 'Measure total time instead of TTFB. Note: TTFB labels are not adjusted.');
 }
 protected function configure()
 {
     $this->setName('sys:info:patches')->setDescription('Determine required patches [Hypernode]')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
 }
 protected function configure()
 {
     parent::configure();
     $this->setName('eav:clean:attributes-and-values-without-parent')->setDescription('Remove catalog_eav_attribute and attribute values which are missing parent entry in eav_attribute')->addOption('dry-run')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
 }
Example #30
0
 protected function configure()
 {
     $this->setName('eav:attribute:list')->setDescription('Lists all EAV attributes')->addOption('filter-type', null, InputOption::VALUE_OPTIONAL, 'Filter attributes by entity type')->addOption('add-source', null, InputOption::VALUE_NONE, 'Add source models to list')->addOption('add-backend', null, InputOption::VALUE_NONE, 'Add backend type to list')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']');
 }