function completetest_drush_command

8.0.x completetest_drush_command()
6.x completetest_drush_command()
7.x completetest_drush_command()
5.x completetest_drush_command()
master completetest_drush_command()

Implementation of hook_drush_command().


tests/, line 11
Commands and options for complete unit tests, to avoid relying on the ever-changing core command set.


function completetest_drush_command() {
  $commands = array(
  foreach ($commands as $command) {
    $items[$command] = array(
      'description' => 'No-op command, used to test various completions for commands that start the same as other commands.',
      'bootstrap' => DRUSH_BOOTSTRAP_NONE,
      'callback' => 'drush_completetest_noop',
      'command-hook' => 'completetest_noop',
  $items['aaaaaaaard']['arguments'] = array('name' => 'Name');
  $items['aaaaaaaard']['options'] = array(
    'ears' => 'Ears',
    'eyes' => 'Eyes',
    'nose' => 'Nose',
    'legs' => 'Legs',
  return $items;