When you run drush features-revert-all
command, it can be altered using hook_drush_command_alter
(&$command
).
However during run it's invoking another command by:
drush_invoke('features-revert', $features_to_revert);
It seems I can still use drush_hook_pre_COMMAND
and drush_hook_post_COMMAND
to perform some additional checks.
However I'd like to alter the list of arguments (features) being passed into features-revert
which are not available as part of the main command.
Is there any Drush hook which I can use to achieve that?