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.

6 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.
unit_drush_init in tests/unit.drush.inc
usage_drush_exit in commands/core/usage.drush.inc

... See full list

File

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

Code

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