1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00
Files
task/testdata/params/Taskfile.yml

45 lines
1.0 KiB
YAML
Raw Permalink Normal View History

version: '3'
vars:
PORTUGUESE_HELLO_WORLD: Olá, mundo!
GERMAN: Hello
2017-07-02 15:30:50 -03:00
2019-08-18 17:37:21 +02:00
tasks:
default:
vars:
SPANISH: ¡Holla mundo!
PORTUGUESE: "{{.PORTUGUESE_HELLO_WORLD}}"
GERMAN: "Welt!"
deps:
- task: write-file
vars: {CONTENT: Dependence1}
2019-08-18 17:37:21 +02:00
- task: write-file
vars: {CONTENT: Dependence2}
2019-08-18 17:37:21 +02:00
- task: write-file
vars: {CONTENT: "{{.SPANISH|replace \"mundo\" \"dependencia\"}}"}
2019-08-18 17:37:21 +02:00
cmds:
- task: write-file
vars: {CONTENT: Hello}
2019-08-18 17:37:21 +02:00
- task: write-file
vars: {CONTENT: "$echo 'World'"}
2019-08-18 17:37:21 +02:00
- task: write-file
vars: {CONTENT: "!"}
2019-08-18 17:37:21 +02:00
- task: write-file
vars: {CONTENT: "{{.SPANISH}}"}
2019-08-18 17:37:21 +02:00
- task: write-file
vars: {CONTENT: "{{.PORTUGUESE}}"}
2019-08-18 17:37:21 +02:00
- task: write-file
vars: {CONTENT: "{{.GERMAN}}"}
2019-08-18 17:37:21 +02:00
- task: non-default
2019-08-18 17:37:21 +02:00
write-file:
cmds:
- echo {{.CONTENT}}
2019-08-18 17:37:21 +02:00
non-default:
vars:
PORTUGUESE: "{{.PORTUGUESE_HELLO_WORLD}}"
cmds:
- task: write-file
vars: {CONTENT: "{{.PORTUGUESE}}"}