You are here

function hacked_drush_command in Hacked! 5

Same name and namespace in other branches
  1. 8.2 hacked.drush.inc \hacked_drush_command()
  2. 6.2 hacked.drush.inc \hacked_drush_command()
  3. 6 hacked.drush.inc \hacked_drush_command()
  4. 7.2 hacked.drush.inc \hacked_drush_command()

Implementation of hook_drush_command().

@See drush_parse_command() for a list of recognized keys.

Return value

An associative array describing your command(s).

File

./hacked.drush.inc, line 34
Hacked drush command.

Code

function hacked_drush_command() {
  $items = array();
  $items['hacked-list-projects'] = array(
    'description' => "List all projects that can be analysed by Hacked! ",
    'drupal dependencies' => array(
      'hacked',
    ),
  );
  $items['hacked-details'] = array(
    'description' => "Show the Hacked! report about a specific project.",
    'drupal dependencies' => array(
      'hacked',
    ),
    'arguments' => array(
      'project' => 'The machine name of the project to report on.',
    ),
  );
  $items['hacked-diff'] = array(
    'description' => "Output a unified diff of the project specified.",
    'drupal dependencies' => array(
      'hacked',
    ),
    'arguments' => array(
      'project' => 'The machine name of the project to report on.',
    ),
  );
  return $items;
}