-
-
Notifications
You must be signed in to change notification settings - Fork 754
Duplicate of#1900
Description
Description
Below is my feature request, see the comments inside the taskfile:
version: "3"
tasks:
echo-*:
aliases:
- e* # should pass the .MATCH argument
vars:
TEXT: "{{index .MATCH 0}}"
cmds:
- echo {{.TEXT}}
run-*-*:
aliases:
- r*-* # should pass the .MATCH arguments
- r # should be illegal
- r* # should be illegal
vars:
ARG_1: "{{index .MATCH 0}}"
ARG_2: "{{index .MATCH 1}}"
cmds:
- echo {{.ARG_1}} {{.ARG_2}}
EDIT:
This is a duplicate because the original issue had a very different title and I was not sure whether it had relevance to this.
Activity