You are here

function config_inspector_drush_command in Configuration Inspector 8

Implements drush_hook_COMMAND().

File

./config_inspector.drush.inc, line 11
Drush commands.

Code

function config_inspector_drush_command() {
  $items['inspect_config'] = [
    'description' => 'Inspect config for schema errors.',
    'arguments' => [
      'key' => 'Configuration key',
    ],
    'options' => [
      'only-error' => 'Display only errors.',
      'detail' => 'Show detailed errors.',
      'skip-keys' => 'Configuration keys to skip',
    ],
    'outputformat' => [
      'default' => 'table',
      'pipe-format' => 'list',
      'field-labels' => [
        'key' => 'Configuration key',
        'status' => 'Status',
      ],
      'output-data-type' => 'format-table',
    ],
  ];
  return $items;
}