You are here

function config_split_drush_command in Configuration Split 8

Implements hook_drush_command().

File

./config_split.drush.inc, line 13
Drush integration for the config_split module.

Code

function config_split_drush_command() {
  $items['config-split-export'] = [
    'description' => 'Export only split configuration to a directory.',
    'core' => [
      '8+',
    ],
    'aliases' => [
      'csex',
    ],
    'arguments' => [
      'split' => 'The split configuration to export, if none is given do a normal export.',
    ],
    'options' => [],
    'examples' => [
      'drush config-split-export development' => 'Export development configuration; assumes a "development" split, export only that.',
    ],
  ];
  $items['config-split-import'] = [
    'description' => 'Import only config from a split.',
    'core' => [
      '8+',
    ],
    'aliases' => [
      'csim',
    ],
    'arguments' => [
      'split' => 'The split configuration to export, if none is given do a normal import.',
    ],
    'options' => [],
    'examples' => [
      'drush config-split-import' => 'Import configuration as drush cim does.',
    ],
  ];
  return $items;
}