You are here

function rdfx_drush_command in RDF Extensions 7.2

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/rdfx.drush.inc, line 23
drush integration for rdfx.

Code

function rdfx_drush_command() {
  $items = array();
  $items['rdf-download'] = array(
    'callback' => 'rdfx_drush_arc2_download',
    'description' => dt('Downloads the required ARC2 library from http://github.com/semsol/arc2'),
    'aliases' => array(
      'rdfdl',
    ),
    'arguments' => array(
      'path' => dt('Optional. A path to the rdfx module. If omitted Drush will use the default location.'),
    ),
  );
  return $items;
}