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.
||Entry point for commands into the drush_invoke() API|
||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…|
||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.|
||Get the options that were passed to the current command.|
||Return the array keys of $options, plus any 'short-form' representations that may appear in the option's value.|
||Return the list of all of the options for the given command record by merging the 'options' and 'sub-options' records.|
||Invoke Drush API calls, including all hooks.|
||Include, instantiate and validate command engines.|
||Add command structure info from each engine back into the command.|
||Fail with an error if the user specified options on the command line that are not documented in the current command record.|
command.inc, line 3
- The drush command engine.