1
0
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:
Pete Davison
2024-01-27 16:17:52 +00:00
parent 9a3d2bc3aa
commit df251de33e
2 changed files with 54 additions and 0 deletions

View File

@ -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}}"