1
0
mirror of https://github.com/go-task/task.git synced 2025-01-22 05:10:17 +02:00
task/testdata/wildcards/Taskfile.yml

26 lines
519 B
YAML
Raw Normal View History

2024-01-27 15:51:43 +00:00
version: 3
tasks:
wildcard-*:
cmds:
- echo "Hello {{index .MATCH 0}}"
wildcard-*-*:
cmds:
- echo "Hello {{index .MATCH 0}}"
2024-01-27 15:51:43 +00:00
'*-wildcard-*':
cmds:
- echo "Hello {{index .MATCH 0}} {{index .MATCH 1}}"
2024-01-27 16:17:52 +00:00
# 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}}\""
2024-01-27 15:51:43 +00:00
start-*:
vars:
SERVICE: "{{index .MATCH 0}}"
cmds:
- echo "Starting {{.SERVICE}}"