Command dispatching functions.

  1. 8.0.x includes/command.inc dispatching
  2. 6.x includes/command.inc dispatching
  3. 7.x includes/command.inc dispatching
  4. 3.x includes/drush.inc dispatching
  5. 4.x includes/command.inc dispatching
  6. 5.x includes/command.inc dispatching
  7. master includes/command.inc dispatching

These functions handle command dispatching, and can be used to programatically invoke drush commands in different ways.

Functions

Namesort descending Location Description
drush_append_negation_options includes/command.inc
drush_command includes/command.inc Entry point for commands into the drush_invoke() API
drush_dispatch includes/command.inc Given a command record, dispatch it as if it were the original command. Executes in the currently bootstrapped site using the current option contexts. Note that drush_dispatch will not bootstrap any further than the current command has already…
drush_invoke includes/command.inc Invokes a Drush API call, including all hooks.
drush_invoke_process includes/command.inc Invoke a command in a new process, targeting the site specified by the provided site alias record.
drush_redispatch_get_options includes/command.inc Get the options that were passed to the current command.
_drush_flatten_options includes/command.inc Return the array keys of $options, plus any 'short-form' representations that may appear in the option's value.
_drush_get_command_options includes/command.inc Return the list of all of the options for the given command record by merging the 'options' and 'sub-options' records.
_drush_invoke_hooks includes/command.inc Invoke Drush API calls, including all hooks.
_drush_load_command_engines includes/command.inc Include, instantiate and validate command engines.
_drush_merge_engine_data includes/command.inc Add command structure info from each engine back into the command.
_drush_verify_cli_arguments includes/command.inc
_drush_verify_cli_options includes/command.inc Fail with an error if the user specified options on the command line that are not documented in the current command record.

File

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