function modernizr_drush_command in Modernizr 8
Same name and namespace in other branches
- 7.3 drush/modernizr.drush.inc \modernizr_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/
modernizr.drush.inc, line 27 - drush integration for modernizr.
Code
function modernizr_drush_command() {
$items = array();
$items['modernizr-dev'] = array(
'callback' => '_modernizr_drush_download_dev',
'description' => dt('Downloads the dev version of Modernizr from @dev', array(
'@dev' => MODERNIZR_DOWNLOAD_DEV,
)),
'aliases' => array(
'mdl',
),
'arguments' => array(
'path' => dt('Optional. A destination for the Modernizr library. If omitted Drush will use one of the default locations.'),
),
);
$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;
}