function proj4js_drush_command in Proj4JS 7
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 topic docs-commands` for a list of recognized keys.
Return value
An associative array describing your command(s).
File
- drush/
proj4js.drush.inc, line 28 - drush integration for Proj4JS.
Code
function proj4js_drush_command() {
$items = array();
// the key in the $items array is the name of the command.
$items['dl-proj4js'] = array(
'callback' => 'drush_proj4js_plugin',
'description' => dt('Download and install the Proj4JS library.'),
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
// No bootstrap.
'arguments' => array(
'path' => dt('Optional. A path where to install the Proj4JS library. If omitted Drush will use the default location.'),
),
);
return $items;
}