1
0
mirror of https://github.com/go-task/task.git synced 2024-12-14 10:52:43 +02:00
task/testdata/wildcards/Taskfile.yml

26 lines
519 B
YAML

version: 3
tasks:
wildcard-*:
cmds:
- echo "Hello {{index .MATCH 0}}"
wildcard-*-*:
cmds:
- echo "Hello {{index .MATCH 0}}"
'*-wildcard-*':
cmds:
- echo "Hello {{index .MATCH 0}} {{index .MATCH 1}}"
# Matches is empty when you call the task name exactly (i.e. `task matches-exactly-*`)
matches-exactly-*:
cmds:
- "echo \"I don't consume matches: {{.MATCH}}\""
start-*:
vars:
SERVICE: "{{index .MATCH 0}}"
cmds:
- echo "Starting {{.SERVICE}}"