function drush_hook_pre_COMMAND

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

Run before a specific command executes.

Logging an error stops command execution, and the rollback function (if any) for each hook implementation is invoked, in addition to the validate rollback.

See also

drush_hook_pre_COMMAND_rollback()

drush_hook_COMMAND_validate_rollback()

File

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

Code

function drush_hook_pre_COMMAND() {

}