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 option --sort to 'list' command #267

Merged
merged 2 commits into from
Sep 5, 2018
Merged

Conversation

wmvanvliet
Copy link
Contributor

The --sort option controls the order in which the tasks are listed.
Currently, two options are supported:

name: sort the tasks by name (the default)
definition: lists the tasks in the order in which they are defined

closes #207

The --sort option controls the order in which the tasks are listed.
Currently, two options are supported:

name: sort the tasks by name (the default)
definition: lists the tasks in the order in which they are defined
@coveralls
Copy link

coveralls commented Sep 3, 2018

Coverage Status

Coverage increased (+0.0006%) to 99.743% when pulling bd6d22a on wmvanvliet:sorting into 50f0c7e on pydoit:master.

Copy link
Member

@schettino72 schettino72 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Quick looks seems ok.

Could you please add your name to AUTHORS file and add an entry on CHANGES.

expected = ['g1', 't1', 't2', 't3']
assert expected == got

def testSortByName(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not necessary to repeat the test.

@schettino72
Copy link
Member

schettino72 commented Sep 4, 2018

Oh. and it seems docs also need to be updated cmd-other.rst. Currently it has the wording:

Tasks are listed in alphabetical order, not by order of execution.

Instead it should mention both way are possible. And note your option is order of definition, not execution.

@wmvanvliet
Copy link
Contributor Author

done!

@schettino72 schettino72 added this to the 0.32 milestone Sep 5, 2018
@schettino72 schettino72 merged commit b274f34 into pydoit:master Sep 5, 2018
@schettino72
Copy link
Member

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

Successfully merging this pull request may close these issues.

Use natural order of task names when listed
3 participants