mirror of
https://github.com/go-task/task.git
synced 2025-12-24 15:39:28 +01:00
feat: wildcard matching of task names
This commit is contained in:
16
testdata/wildcards/Taskfile.yml
vendored
Normal file
16
testdata/wildcards/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
version: 3
|
||||
|
||||
tasks:
|
||||
wildcard-*:
|
||||
cmds:
|
||||
- echo "Hello {{index .MATCH 0}}"
|
||||
|
||||
'*-wildcard-*':
|
||||
cmds:
|
||||
- echo "Hello {{index .MATCH 0}} {{index .MATCH 1}}"
|
||||
|
||||
start-*:
|
||||
vars:
|
||||
SERVICE: "{{index .MATCH 0}}"
|
||||
cmds:
|
||||
- echo "Starting {{.SERVICE}}"
|
||||
Reference in New Issue
Block a user