mirror of
https://github.com/go-task/task.git
synced 2025-07-15 01:35:00 +02:00
feat: tests for wildcard matching
This commit is contained in:
5
testdata/wildcards/Taskfile.yml
vendored
5
testdata/wildcards/Taskfile.yml
vendored
@ -9,6 +9,11 @@ tasks:
|
||||
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}}"
|
||||
|
Reference in New Issue
Block a user