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.

5 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_pm_post_pm_updatecode in commands/pm/pm.drush.inc
Post-command callback for updatecode.
unit_drush_init in tests/unit.drush.inc
_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 360
The Drush context API implementation.

Code

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