mirror of
https://github.com/go-task/task.git
synced 2024-12-14 10:52:43 +02:00
5ece1d74f6
closes #40
27 lines
805 B
YAML
27 lines
805 B
YAML
default:
|
|
vars:
|
|
SPANISH: ¡Holla mundo!
|
|
PORTUGUESE: "{{.PORTUGUESE}}"
|
|
deps:
|
|
- task: write-file
|
|
vars: {CONTENT: Dependence1, FILE: dep1.txt}
|
|
- task: write-file
|
|
vars: {CONTENT: Dependence2, FILE: dep2.txt}
|
|
- task: write-file
|
|
vars: {CONTENT: "{{.SPANISH|replace \"mundo\" \"dependencia\"}}", FILE: spanish-dep.txt}
|
|
cmds:
|
|
- task: write-file
|
|
vars: {CONTENT: Hello, FILE: hello.txt}
|
|
- task: write-file
|
|
vars: {CONTENT: "$echo 'World'", FILE: world.txt}
|
|
- task: write-file
|
|
vars: {CONTENT: "!", FILE: exclamation.txt}
|
|
- task: write-file
|
|
vars: {CONTENT: "{{.SPANISH}}", FILE: spanish.txt}
|
|
- task: write-file
|
|
vars: {CONTENT: "{{.PORTUGUESE}}", FILE: portuguese.txt}
|
|
|
|
write-file:
|
|
cmds:
|
|
- echo {{.CONTENT}} > {{.FILE}}
|