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()
annotationcommand_adapter_process_command in includes/annotationcommand_adapter.inc
This function is set as the $command['callback'] for commands that have been converted to annotated commands. When the DRUSH_SYMFONY environment variable is set, these will be called via Symfony's Application::run() method. Otherwise,…
annotationcommand_adapter_run_console_command in includes/annotationcommand_adapter.inc
This function is set as the $command['callback'] for Symfony Console commands e.g. those provided by Drupal 8 modules. When the DRUSH_SYMFONY environment variable is set, these will be called via Symfony's Application::run()…
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.

... See full list

File

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

Code

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