You are here

function modernizr_drush_command in Modernizr 7.3

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

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.

For a list of recognized keys,

Return value

An associative array describing your command(s).

See also

drush_parse_command()

File

drush/modernizr.drush.inc, line 24
drush integration for modernizr.

Code

function modernizr_drush_command() {
  $items = array();
  $items['modernizr-dev'] = array(
    'callback' => '_modernizr_drush_download_dev',
    'description' => dt('This command used to download a development copy of Modernizr but it is no longer offered on modernizr.com as of v3'),
    'aliases' => array(
      'mdl',
    ),
  );
  $items['modernizr-build'] = array(
    'callback' => '_modernizr_drush_custom_build',
    'description' => dt('Requests a custom build of Modernizr based on your Drupal module settings. Depends on node.js/npm.'),
    'aliases' => array(
      'mcb',
    ),
    'arguments' => array(),
  );
  return $items;
}