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 an option to sort task alphabatically #4

Closed
Jenselme opened this issue May 20, 2015 · 2 comments
Closed

Add an option to sort task alphabatically #4

Jenselme opened this issue May 20, 2015 · 2 comments

Comments

@Jenselme
Copy link

I saw that if you list the task in the show method they will be listed in the specified order. However, I would just like to see them in alphabetical order.

Is it possible to add an option to do that?

sttk pushed a commit that referenced this issue May 21, 2015
@sttk
Copy link
Owner

sttk commented May 21, 2015

I've added 2 APIs on version 1.0.3: .taskNames() and .show(string[]).

You can write as follows to see tasks in alphabetical order in a help message:

ghelp.show(ghelp.taskNames().sort());

@Jenselme
Copy link
Author

Awsome! Thanks.

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

2 participants