You are here

function structure_sync_drush_command in Structure Sync 8

Same name and namespace in other branches
  1. 2.x structure_sync.drush.inc \structure_sync_drush_command()

Implements hook_drush_command().

File

./structure_sync.drush.inc, line 13
Drush commands for syncing structure content.

Code

function structure_sync_drush_command() {
  $arguments = [
    'arguments' => [
      'choice' => 'The choice as argument',
    ],
  ];
  $items = [];
  $items['export-taxonomies'] = [
    'description' => 'Export the taxonomies',
    'drupal dependencies' => [
      'structure_sync',
    ],
    'aliases' => [
      'et',
    ],
  ];
  $items['import-taxonomies'] = [
    'description' => 'Import the taxonomies',
    'drupal dependencies' => [
      'structure_sync',
    ],
    'aliases' => [
      'it',
    ],
    $arguments,
  ];
  $items['export-blocks'] = [
    'description' => 'Export blocks',
    'drupal dependencies' => [
      'structure_sync',
    ],
    'aliases' => [
      'eb',
    ],
  ];
  $items['import-blocks'] = [
    'description' => 'Import blocks',
    'drupal dependencies' => [
      'structure_sync',
    ],
    'aliases' => [
      'ib',
    ],
    $arguments,
  ];
  $items['export-menus'] = [
    'description' => 'Export menu links',
    'drupal dependencies' => [
      'structure_sync',
    ],
    'aliases' => [
      'em',
    ],
  ];
  $items['import-menus'] = [
    'description' => 'Import menu links',
    'drupal dependencies' => [
      'structure_sync',
    ],
    'aliases' => [
      'im',
    ],
    $arguments,
  ];
  $items['import-all'] = [
    'description' => 'Import menu links, Taxonomy and Blocks',
    'drupal dependencies' => [
      'structure_sync',
    ],
    'aliases' => [
      'ia',
    ],
    $arguments,
  ];
  $items['export-all'] = [
    'description' => 'Export menu links, Taxonomy and Blocks',
    'drupal dependencies' => [
      'structure_sync',
    ],
    'aliases' => [
      'ea',
    ],
  ];
  return $items;
}