mirror of
https://github.com/go-task/task.git
synced 2024-12-14 10:52:43 +02:00
68ce8642b1
Also, fix "<no value>" been printed when a non-existing variable is printed.
20 lines
285 B
YAML
20 lines
285 B
YAML
version: '3'
|
|
|
|
tasks:
|
|
foo:
|
|
preconditions:
|
|
- test -f foo.txt
|
|
|
|
impossible:
|
|
preconditions:
|
|
- sh: "[ 1 = 0 ]"
|
|
msg: "1 != 0 obviously!"
|
|
|
|
depends_on_impossible:
|
|
deps:
|
|
- impossible
|
|
|
|
executes_failing_task_as_cmd:
|
|
cmds:
|
|
- task: impossible
|