function hacked_drush_command in Hacked! 6.2
Same name and namespace in other branches
- 8.2 hacked.drush.inc \hacked_drush_command()
- 5 hacked.drush.inc \hacked_drush_command()
- 6 hacked.drush.inc \hacked_drush_command()
- 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',
),
'options' => array(
'--force-rebuild' => 'Rebuild the Hacked! report instead of getting a cached version.',
),
'aliases' => array(
'hlp',
),
);
$items['hacked-lock-modified'] = array(
'description' => "Lock all projects that Hacked! detects are modified, so that drush pm-updatecode will not touch them. (drush-4.x+ only)",
'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.',
),
'options' => array(
'--include-unchanged' => 'Show the files that are unchanged too.',
),
'aliases' => array(
'hd',
),
);
$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.',
),
'options' => array(
'--diff-options' => 'Command line options to pass through to the diff command.',
),
);
return $items;
}