-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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 options to bash completion and sort options #9863
Conversation
@tianon @jfrazelle ping |
Wow, that sorting commit looks like it was a lot of work! Nice! 👍 |
;; | ||
*) | ||
__docker_image_repos_and_tags_and_ids | ||
esac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add the ;;
in this *)
block too, just for consistency? 👼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, sure. Thanks for spotting this.
Other than my one tiny nit, LGTM! Very nice work. ⭐ |
Yayyyy You came back for more! LGTM after that fix :) |
c8c48ed
to
70161b4
Compare
Fixed & rebased. Thanks for reviewing. |
Signed-off-by: Harald Albers <github@albersweb.de>
This introduces a sort order for options: Arrange options sorted alphabetically by long name with the short options immediately following their corresponding long form. Signed-off-by: Harald Albers <github@albersweb.de>
Awesome, thanks so much @albers ❤️ This is haaaawt 👍 |
LGTM |
Add options to bash completion and sort options
This adds the following options:
When implementing, I found it hard to spot the appropriate places for the options because there was no consistent sort order. Therefore I added a refactoring step that introduces a new sort order:
Arrange options sorted alphabetically by long name with the short options immediately following their corresponding long form.
This also removes support for the following deprecated options: