The Wayback Machine - https://web.archive.org/web/20201118072422/https://github.com/go-task/task/issues/383
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

Add a `-L` flag (alternative to `-l`) that prints all tasks #383

Open
zx8 opened this issue Oct 2, 2020 · 2 comments
Open

Add a `-L` flag (alternative to `-l`) that prints all tasks #383

zx8 opened this issue Oct 2, 2020 · 2 comments

Comments

@zx8
Copy link

@zx8 zx8 commented Oct 2, 2020

Or a new flag should be introduced (e.g. task --names) to just output the names of available tasks, with no descriptions.

Currently, a Taskfile with no descriptions returns:

$ task -l
task: No tasks with description available

While the solution is fairly intuitive (i.e. add a description to every task), the behaviour is surprising. Not to mention it would make the completions much less hacky (for tasks that do have a description):

@andreynering
Copy link
Contributor

@andreynering andreynering commented Oct 12, 2020

Hi @zx8,

Perhaps we could add a -L flag (as an alternative to -l) that prints all tasks?

Changing the behavior of the existing flag is a backward incompatible change, so not a good idea.

@zx8
Copy link
Author

@zx8 zx8 commented Oct 12, 2020

Yeah sure, that works!

@andreynering andreynering changed the title `task --list` should work if there are no descriptions Add a `-L` flag (alternative to `-l`) that prints all tasks Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.