function patchinfo_drush_command in PatchInfo 8.2
Same name and namespace in other branches
- 8 patchinfo.drush.inc \patchinfo_drush_command()
- 7 patchinfo.drush.inc \patchinfo_drush_command()
Implements hook_drush_command().
File
- ./
patchinfo.drush.inc, line 11 - Drush commands provided by Patch Info module.
Code
function patchinfo_drush_command() {
$items = [];
$items['patchinfo-list'] = [
'description' => 'Show a report of patches applied to Drupal core and contrib projects.',
'arguments' => [
'projects' => 'Optional. A list of installed projects to show.',
],
'options' => [
'pipe' => 'Return a list of the projects with any patches applied, one project per line.',
],
'outputformat' => [
'default' => 'table',
'pipe-format' => 'list',
'field-labels' => [
'name' => 'Name',
'label' => 'Title',
'delta' => '#',
'info' => 'Info',
],
'fields-default' => [
'label',
'delta',
'info',
],
'fields-pipe' => [
'name',
],
'output-data-type' => 'format-table',
],
'aliases' => [
'pil',
'pi-list',
],
];
return $items;
}