You are here

function markdown_drush_command in Markdown 8.2

Same name and namespace in other branches
  1. 8 drush/markdown.drush.inc \markdown_drush_command()
  2. 7.2 drush/markdown.drush.inc \markdown_drush_command()

Implements hook_drush_command().

Related topics

File

./markdown.drush.inc, line 48
Drush commands for Drupal Markdown.

Code

function markdown_drush_command() {
  $items = [];
  $items['markdown-version-hash'] = [
    'description' => dt('Generates the version hashes necessary to detect composer library versions.'),
    'arguments' => [
      'package' => 'A specific composer vendor/name package.',
    ],
    'options' => [
      'force' => 'Comma delimited list of spreads (e.g. mayonnaise, mustard)',
    ],
    'examples' => [
      'Standard example' => 'drush markdown-version-hash',
    ],
    'aliases' => [
      'mvh',
      'markdown:version-hash',
    ],
  ];
  return $items;
}