function drush_command_defaults

8.0.x command.inc drush_command_defaults($key, $commandfile, $path)
6.x command.inc drush_command_defaults($key, $commandfile, $path)
7.x command.inc drush_command_defaults($key, $commandfile, $path)
4.x command.inc drush_command_defaults($key, $commandfile, $path)
5.x command.inc drush_command_defaults($key, $commandfile, $path)
master command.inc drush_command_defaults($key, $commandfile, $path)
2 calls to drush_command_defaults()
drush_get_commands in includes/command.inc
Get a list of all implemented commands. This invokes hook_drush_command().
drush_global_options_command in commands/core/help.drush.inc
Build a fake command for the purposes of showing examples and options.

File

includes/command.inc, line 695
The drush command engine.

Code

function drush_command_defaults($key, $commandfile, $path) {
  return array(
    'command' => $key,
    'command-hook' => $key,
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_LOGIN,
    'callback arguments' => array(),
    'commandfile' => $commandfile,
    'path' => dirname($path),
    'engines' => array(), // Helpful for drush_show_help().
    'callback' => 'drush_command',
    'description' => NULL,
    'sections' => array(
      'examples' => 'Examples',
      'arguments' => 'Arguments',
      'options' => 'Options',
    ),
    'arguments' => array(),
    'options' => array(),
    'examples' => array(),
    'aliases' => array(),
    'deprecated-aliases' => array(),
    'core' => array(),
    'scope' => 'site',
    'drupal dependencies' => array(),
    'drush dependencies' => array(),
    'bootstrap_errors' => array(),
    'topics' => array(),
    'hidden' => FALSE,
  );
}