You are here

function bxslider_drush_command in BxSlider 8

Implements hook_drush_command().

File

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

Code

function bxslider_drush_command() {
  $items = [];

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