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

cli: print commands in alphabetical order #1344

Merged
merged 1 commit into from
Mar 7, 2023
Merged

Conversation

martinvonz
Copy link
Owner

Until clap-rs/clap#1553 is fixed, I don't think we can do better than alphabetical order (without a lot of work).

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (src/config-schema.json)
  • I have added tests to cover my changes

Until clap-rs/clap#1553 is fixed, I don't
think we can do better than alphabetical order (without a lot of
work).
@joyously
Copy link

joyously commented Mar 7, 2023

Hopefully, the enum isn't stored in the op log or anything, so there would be no consequence of reordering the commands.

@martinvonz
Copy link
Owner Author

Hopefully, the enum isn't stored in the op log or anything, so there would be no consequence of reordering the commands.

Correct, this won't have any compatibility problems with existing repos.

@martinvonz martinvonz merged commit e509a29 into main Mar 7, 2023
@martinvonz martinvonz deleted the push-xyywqyynxxmn branch March 7, 2023 05:35
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.

3 participants