mirror of
https://github.com/go-task/task.git
synced 2026-09-01 11:39:28 +02:00
feat: command timeouts (#2898)
This commit is contained in:
6
testdata/exit_code/Taskfile.yml
vendored
6
testdata/exit_code/Taskfile.yml
vendored
@@ -23,3 +23,9 @@ tasks:
|
||||
cmds:
|
||||
- defer: echo FOO={{.FOO}} - DYNAMIC_FOO={{.DYNAMIC_FOO}} - {{.PREFIX}}{{.EXIT_CODE}}
|
||||
- exit 1
|
||||
|
||||
exit-timeout:
|
||||
cmds:
|
||||
- defer: echo {{.PREFIX}}{{.EXIT_CODE}}
|
||||
- cmd: sleep 10
|
||||
timeout: 200ms
|
||||
|
||||
Reference in New Issue
Block a user