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

sake help #22

Closed
coke opened this issue Jul 8, 2018 · 4 comments
Closed

sake help #22

coke opened this issue Jul 8, 2018 · 4 comments

Comments

@coke
Copy link
Contributor

coke commented Jul 8, 2018

Would it be nice to have 'sake help' to show the tasks in the order they were defined, along with any POD help assigned to the task?

@AlexDaniel
Copy link
Member

Yes. “in the order they were defined” is maybe trickier than it sounds, so just sorting by the name is a good start.

@JJ
Copy link
Contributor

JJ commented Oct 7, 2018

I see several possible ways of doing this. Task are stored in %TASKS. So we could simply set up that variable to have a task called "help" added. That would effectively go into the library.
Second way is to make it simply a function of the binary. It wouldn't change the library code, then. I'll try the first way.

AlexDaniel added a commit that referenced this issue Oct 7, 2018
Adds sake help (maybe) closes #22
@AlexDaniel
Copy link
Member

@coke what do you think?

@AlexDaniel AlexDaniel reopened this Oct 7, 2018
@AlexDaniel
Copy link
Member

@JJ this actually breaks it for sakefiles that already have a help task. For example: https://github.com/perl6/whateverable/blob/43a4e48262863fe6148f0e1e59e01363b2545d4c/Sakefile#L4

So the change needs to be reverted or we should make it somehow respect custom help tasks.

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