-
-
Notifications
You must be signed in to change notification settings - Fork 763
Closed as not planned
Description
There currently (apparently) is no way to run a task or command whenever a task (or command) fails in a native Taskfile way. It would be awesome to have a event handler for tasks or commands, something like this:
version: '3'
tasks:
test:
cmds:
- wget {{.URL}} -O {{.CACHE_FILE}}
on:
error:
- cmd: rm {{.CACHE_FILE}}
silent: true
exit: # on CTRL+C
- cmd: rm -i {{.CACHE_FILE}}
silent: true
vars:
URL: test_url
CACHE_FILE:
sh: echo /tmp/$(mktemp)Metadata
Metadata
Assignees
Labels
No labels