You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
version: '3'tasks:
bar-*:
cmds:
- "echo bar: {{index .MATCH 0}}"
Output of task --list-all:
task: Available tasks for this project:
* foo-*: (aliases: f)
* included:bar-*: (aliases: inc:bar-*)
That's pretty misleading, though, because trying some of the implied commands results in:
# f is a wildcard task, so it should take parameters
$ task f-hello
task: Task "f-hello" does not exist
# okay, let's just do what it says in "(aliases: f)"
$ task f
template: :1:12: executing "" at <index .MATCH 0>: error calling index: index of untyped nil
# that was even worse; what about bar in our included Taskfile?
$ task inc:bar-hello
task: Task "inc:bar-hello" does not exist
Activity
JackoCoolio commentedon Nov 2, 2024
I'm working on a fix for this, but figured I'd add an issue in the meantime :)
[-]Included and aliased Taskfiles don't play well with wildcards[/-][+]Support wildcards in task aliases[/+]JacobPotter commentedon May 2, 2025
Hi, is there any update here? I am running into this issue as well.