Implement default_stages

This commit is contained in:
Anthony Sottile 2019-01-06 09:54:55 -08:00
parent 9c6a1d80d6
commit bd65d8947f
4 changed files with 29 additions and 3 deletions

View file

@ -252,7 +252,7 @@ def run(config_file, store, args, environ=os.environ):
hook
for hook in all_hooks(config, store)
if not args.hook or hook.id == args.hook or hook.alias == args.hook
if not hook.stages or args.hook_stage in hook.stages
if args.hook_stage in hook.stages
]
if args.hook and not hooks: