You are here

function respondjs_drush_command in Respond.js 7

Same name and namespace in other branches
  1. 8 drush/respondjs.drush.inc \respondjs_drush_command()

Implementation of 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 drush_parse_command() for a list of recognized keys.

Return value

An associative array describing your command(s).

File

drush/respondjs.drush.inc, line 21
drush integration for respondjs.

Code

function respondjs_drush_command() {
  $items = array();
  $items['rjs-download'] = array(
    'callback' => 'respondjs_drush_respondjs_download',
    'description' => dt('Downloads the required respond.js library from http://github.com/scottjehl/Respond'),
    'aliases' => array(
      'rjsdl',
    ),
    'arguments' => array(
      'path' => dt('Optional. A path to the respondjs module. If omitted Drush will use the default location.'),
    ),
  );
  return $items;
}