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_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 Invoke drush api calls.
drush_invoke_args includes/command.inc As drush_invoke, but args are passed in as an array rather than as individual function parameters.
drush_invoke_process includes/command.inc Invoke a command in a new process, targeting the site specified by the provided site alias record.
drush_invoke_process_args includes/command.inc Invoke a command in a new process.
drush_invoke_sitealias includes/command.inc Invoke a command in a new process, targeting the site specified by the provided site alias record.
drush_invoke_sitealias_args 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_invoke_args includes/command.inc Variant of drush_invoke_args that allows the commandfile to be specified correctly; this allows the hook functions to be correctly determined for commands that provide a 'callback' function.

File

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