You are here

function gathercontent_upload_drush_command in GatherContent 8.5

Implements hook_drush_command().

File

gathercontent_upload/gathercontent_upload.drush.inc, line 16
GatherContent Upload drush command.

Code

function gathercontent_upload_drush_command() {
  $commands = [];
  $commands['gathercontent-upload'] = [
    'aliases' => [
      'gc-u',
    ],
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
    'description' => dt('Upload changes to GatherContent'),
    'engines' => [
      'outputformat' => [
        'default' => 'table',
        'pipe-format' => 'json',
        'output-data-type' => 'format-table',
        'field-labels' => [
          'id' => dt('ID'),
          'item_name' => dt('Item name'),
          'node_status' => dt('Node status'),
          'upload_status' => dt('Upload status'),
        ],
      ],
    ],
  ];
  return $commands;
}