Command dispatching functions.
- 8.0.x includes/command.inc dispatching
- 6.x includes/command.inc dispatching
- 7.x includes/command.inc dispatching
- 3.x includes/drush.inc dispatching
- 4.x includes/command.inc dispatching
- 5.x includes/command.inc dispatching
- master includes/command.inc dispatching
These functions handle command dispatching, and can be used to programatically invoke drush commands in different ways.
||Invokes a Drush API call, including all hooks.|
||Invoke a command in a new process, targeting the site specified by the provided site alias record.|
||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…|
||Entry point for commands into the drush_invoke() API|
||Invoke Drush API calls, including all hooks.|
||Convert the structured output array provided from the Drush command into formatted output. Output is only printed for commands that define 'default-format' &/or 'default-pipe-format'; all other commands are expected to do…|
||Fail with an error if the user specified options on the command line that are not documented in the current command record. Also verify that required options are present.|
||Return the list of all of the options for the given command record by merging the 'options' and 'sub-options' records.|
||Return the array keys of $options, plus any 'short-form' representations that may appear in the option's value.|
||Get the options that were passed to the current command.|
command.inc, line 5
- The drush command engine.