Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcards not working #1519

Closed
iPenguin opened this issue Feb 27, 2024 · 7 comments
Closed

Wildcards not working #1519

iPenguin opened this issue Feb 27, 2024 · 7 comments

Comments

@iPenguin
Copy link

Hi I'm trying to use the wildcard arguments as listed in the documentation. I've updated to the latest version of taskfile but it's not working.

I also tried to copy the example in the docs and that isn't working either.

Am I missing something obvious?

---
version: '3'

tasks:
  echo-*:
    vars:
      TEXT: '{{index .MATCH 0}}'
    cmds:
      - echo {{.TEXT}}

  run-*-*:
    vars:
      ARG_1: '{{index .MATCH 0}}'
      ARG_2: '{{index .MATCH 1}}'
    cmds:
      - echo {{.ARG_1}} {{.ARG_2}}

Thanks,
Brian

  • Task version: v3.34.1
  • Operating system: Linux
  • Experiments enabled: no
@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Feb 27, 2024
@pd93
Copy link
Member

pd93 commented Feb 27, 2024

Hi @iPenguin. Unfortunately, our docs are not currently versioned so this has been added to the site before it has been released. The wildcard functionality will be released in the next version of Task.

@pd93 pd93 closed this as completed Feb 27, 2024
@pd93 pd93 added type: question Further information is requested. and removed state: needs triage Waiting to be triaged by a maintainer. labels Feb 27, 2024
@pd93
Copy link
Member

pd93 commented Feb 27, 2024

@andreynering This is happening quite often. Maybe we ought to change the CD to only update the docs site on releases for now?

@andreynering
Copy link
Member

@pd93 Yeah, we should eventually do that.

@iPenguin
Copy link
Author

Ah, well that explains it, thanks.

If you aren't going to version the docs for a while, maybe you could indicate that a feature is still in progress, or what version it should land if you know.

Thanks,
Brian

@FFengIll
Copy link

FFengIll commented Mar 1, 2024

I meet the same question, is there anything updated for it?

@pd93
Copy link
Member

pd93 commented Mar 1, 2024

@FFengIll Wildcard matching was released in v3.35.0. Please make sure you're running the latest version. If you're still unable to make it work, please open a new issue.

@iPenguin
Copy link
Author

iPenguin commented Mar 1, 2024

@FFengIll Wildcard matching was released in v3.35.0. Please make sure you're running the latest version. If you're still unable to make it work, please open a new issue.

I just downloaded the new version and tried it out. It works well. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants