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()

Declare a new command.

29 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
browse_drush_command in commands/core/browse.drush.inc
Implements hook_drush_command().
cache_drush_command in commands/core/cache.drush.inc
Implementation of hook_drush_command().
completetestsite_drush_command in tests/completetestsite.drush.inc
Implementation of hook_drush_command().
completetest_drush_command in tests/completetest.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`
}