You are here

function photoswipe_drush_command in PhotoSwipe 8.2

Same name and namespace in other branches
  1. 8 drush/photoswipe.drush.inc \photoswipe_drush_command()
  2. 7.2 drush/photoswipe.drush.inc \photoswipe_drush_command()
  3. 3.x drush/photoswipe.drush.inc \photoswipe_drush_command()

Implements hook_drush_command().

File

drush/photoswipe.drush.inc, line 17
Drush integration for PhotoSwipe.

Code

function photoswipe_drush_command() {
  $items = [];

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