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.

31 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().
cli_drush_command in commands/core/cli.drush.inc
Implements 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

./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`.
}