function hook_drush_command

8.0.x drush.api.php hook_drush_command()
6.x drush.api.php hook_drush_command()
7.x drush.api.php hook_drush_command()
4.x drush.api.php hook_drush_command()
5.x drush.api.php hook_drush_command()
master drush.api.php hook_drush_command()

@file Documentation of the Drush API.

Declare a new command.

18 functions implement hook_drush_command()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

archive_drush_command in commands/core/archive.drush.inc
cache_drush_command in commands/core/cache.drush.inc
Implementation of hook_drush_command().
core_drush_command in commands/core/core.drush.inc
Implementation of hook_drush_command().
docs_drush_command in commands/core/docs.drush.inc
Implementation of hook_drush_command().
field_drush_command in commands/core/field.drush.inc
Implementation of hook_drush_command().

... See full list

File

docs/drush.api.php, line 11
Documentation of the Drush API.

Code

function hook_drush_command() {
  // To learn more, run `drush topic docs-commands` and `drush topic docs-examplecommand`
}