2024-01-27 15:51:43 +00:00
|
|
|
version: 3
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
wildcard-*:
|
|
|
|
cmds:
|
|
|
|
- echo "Hello {{index .MATCH 0}}"
|
|
|
|
|
2024-02-22 20:52:05 +00:00
|
|
|
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}}"
|