function completetest_drush_command

8.0.x completetest.drush.inc completetest_drush_command()
6.x completetest.drush.inc completetest_drush_command()
7.x completetest.drush.inc completetest_drush_command()
5.x completetest.drush.inc completetest_drush_command()
master completetest.drush.inc completetest_drush_command()

Implementation of hook_drush_command().

File

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

Code

function completetest_drush_command() {
  $commands = array(
    'aaaaaaaard',
    'aaaaaaaard-ant',
    'aaaaaaaard-vark',
    'aaaaaaaard-wolf',
    'zzzzzzzzebra',
  );
  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;
}