You are here

function hacked_drush_command in Hacked! 8.2

Same name and namespace in other branches
  1. 5 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()

Implements hook_drush_command().

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

File

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

Code

function hacked_drush_command() {
  $items['hacked-list-projects'] = [
    'description' => "List all projects that can be analysed by Hacked! ",
    'drupal dependencies' => [
      'hacked',
    ],
    'options' => [
      'force-rebuild' => 'Rebuild the Hacked! report instead of getting a cached version.',
    ],
    'aliases' => [
      'hlp',
    ],
  ];
  $items['hacked-lock-modified'] = [
    'description' => "Lock all projects that Hacked! detects are modified, so that drush pm-updatecode will not touch them. (drush-4.x+ only)",
    'drupal dependencies' => [
      'hacked',
    ],
  ];
  $items['hacked-details'] = [
    'description' => "Show the Hacked! report about a specific project.",
    'drupal dependencies' => [
      'hacked',
    ],
    'arguments' => [
      'project' => 'The machine name of the project to report on.',
    ],
    'options' => [
      'include-unchanged' => 'Show the files that are unchanged too.',
    ],
    'aliases' => [
      'hd',
    ],
  ];
  $items['hacked-diff'] = [
    'description' => "Output a unified diff of the project specified.",
    'drupal dependencies' => [
      'hacked',
    ],
    'arguments' => [
      'project' => 'The machine name of the project to report on.',
    ],
    'options' => [
      'diff-options' => 'Command line options to pass through to the diff command.',
    ],
  ];
  return $items;
}