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.

4 calls to drush_get_command()
drush_command in includes/command.inc
Entry point for commands into the drush_invoke API
drush_command_default_options in includes/command.inc
Conditionally include default options based on the command used.
drush_dispatch in includes/drush.inc
Dispatch a given set of commands. Modules can add commands by implementing hook_drush_command().
_drush_sitealias_user_specified_list in commands/core/sitealias.drush.inc
Return the list of sites (aliases or local) that the user specified on the command line. If none were specified, then all are returned.

File

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

Code

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