You are here

function colorbox_drush_command in Colorbox 8

Same name and namespace in other branches
  1. 6 drush/colorbox.drush.inc \colorbox_drush_command()
  2. 7.2 drush/colorbox.drush.inc \colorbox_drush_command()
  3. 7 drush/colorbox.drush.inc \colorbox_drush_command()

Implements hook_drush_command().

File

drush/colorbox.drush.inc, line 19
Drush integration for colorbox.

Code

function colorbox_drush_command() {
  $items = [];

  // The key in the $items array is the name of the command.
  $items['colorbox-plugin'] = [
    'callback' => 'drush_colorbox_plugin',
    'description' => dt('Download and install the Colorbox plugin.'),
    // No bootstrap.
    'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
    'arguments' => [
      'path' => dt('Optional. A path where to install the Colorbox plugin. If omitted Drush will use the default location.'),
    ],
    'aliases' => [
      'colorboxplugin',
    ],
  ];
  return $items;
}