You are here

function chosen_lib_drush_command in Chosen 8.2

Same name and namespace in other branches
  1. 3.0.x modules/chosen_lib/drush/chosen_lib.drush.inc \chosen_lib_drush_command()

Implements hook_drush_command().

File

modules/chosen_lib/drush/chosen_lib.drush.inc, line 18
Drush integration for chosen.

Code

function chosen_lib_drush_command() {
  $items = [];

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