You are here

function jquerymobile_drush_command in jQuery Mobile module 7.2

Implements hook_drush_command().

In this hook, you specify which commands your drush module makes available, what it does and description.

Notice how this structure closely resembles how you define menu hooks.

See also

drush_parse_command()

http://api.drush.ws/api/drush/includes%21command.inc/function/drush_pars...

File

drush/jquerymobile.drush.inc, line 21
Drush integration for jquerymobile.

Code

function jquerymobile_drush_command() {
  $items = array();
  $items['jquerymobile'] = array(
    'description' => "Downloads the desired version of the jQuery Mobile framework and places it in the correct location.",
    'options' => array(
      'jqm' => dt('Enter the version of the jQuery Mobile framework you wish to download. If omitted Drush will use 1.0.1'),
      'jquery' => dt('Enter the version of the jQuery framework you wish to download. If omitted Drush will use 1.6.4'),
      'path' => dt('Optional. A path to the download folder. If omitted Drush will use the default location (sites/all/libraries).'),
    ),
    'bootstrap' => DRUSH_BOOTSTRAP_FULL,
  );
  return $items;
}