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

Call --list from within taskfile. #1562

Closed
rangerjo opened this issue Mar 24, 2024 · 1 comment
Closed

Call --list from within taskfile. #1562

rangerjo opened this issue Mar 24, 2024 · 1 comment

Comments

@rangerjo
Copy link

As a default task I wish to call task --list. This will display the builtin summary of all available tasks. Unfortuantly, some distros (eg. Arch) package task as go-task, so the above default task would fail.

It would be nice to either

  1. have a global Variable similar to CLI_ARGS avalible that holds argv[0], or in other words the command issued to run task, or
  2. call task --list from within the Taskfile just like calling any other task without exiting task.
@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Mar 24, 2024
@vmaerten
Copy link
Member

Hi @rangerjo,

In the next version, a new special variable will be available (#1624)
TASK_EXE will hold argv[0]

@task-bot task-bot removed the state: needs triage Waiting to be triaged by a maintainer. label May 20, 2024
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

3 participants