You are here

function content_synchronizer_drush_command in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 content_synchronizer.drush.inc \content_synchronizer_drush_command()

Implementation of hook_drush_command().

File

./content_synchronizer.drush.inc, line 18
Drush commands for content_synchronizer module.

Code

function content_synchronizer_drush_command() {
  $items = [];

  // Create Import.
  $items['content-synchronizer-create-import'] = [
    'description' => 'Create an import from passed .zip file.',
    'arguments' => [
      'file' => 'Optional. The cache bin to fetch from.',
    ],
    'required-arguments' => 1,
    'aliases' => [
      'csci',
    ],
  ];

  // Clean tmps.
  $items['content-synchronizer-clean-temporary-files'] = [
    'description' => 'Delete temporary files.',
    'aliases' => [
      'csctf',
    ],
  ];

  // Launch Export.
  $items['content-synchronizer-launch-export'] = [
    'description' => 'Launch the export of the passed ID.',
    'aliases' => [
      'cslex',
    ],
    'arguments' => [
      'exportId' => 'The export id.',
    ],
  ];

  // Launch Import.
  $items['content-synchronizer-launch-import'] = [
    'description' => 'Launch the import of the passed ID.',
    'aliases' => [
      'cslim',
    ],
    'arguments' => [
      'importId' => 'The import id.',
    ],
  ];
  return $items;
}