function drush_get_command

8.0.x context.inc drush_get_command()
6.x context.inc drush_get_command()
7.x context.inc drush_get_command()
3.x context.inc drush_get_command()
4.x context.inc drush_get_command()
5.x context.inc drush_get_command()
master context.inc drush_get_command()

Return the command being executed.

9 calls to drush_get_command()
drush_command in includes/command.inc
Entry point for commands into the drush_invoke() API
drush_command_set_command_specific in includes/command.inc
drush_get_original_cli_args_and_options in includes/command.inc
Return the original cli args and options, exactly as they appeared on the command line, and in the same order. Any command-specific options that were set will also appear in this list, appended at the very end.
drush_notify_shutdown_error in commands/core/notify.drush.inc
Shutdown function to signal on errors.
drush_set_default_outputformat in commands/core/outputformat.drush.inc
Dynamically switch to a new output format. Does NOT override user-selected output format.

... See full list

File

includes/context.inc, line 390
The Drush context API implementation.

Code

function drush_get_command() {
  return drush_get_context('command');
}