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 options to bash completion and sort options #9863

Merged
merged 2 commits into from
Jan 1, 2015

Conversation

albers
Copy link
Member

@albers albers commented Dec 31, 2014

This adds the following options:

  • save: --output -o
  • load: --input -i
  • run/create: --ipc --mac-address

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:

  • images: --viz -v --tree -t

@albers
Copy link
Member Author

albers commented Dec 31, 2014

@tianon @jfrazelle ping

@tianon
Copy link
Member

tianon commented Dec 31, 2014

Wow, that sorting commit looks like it was a lot of work! Nice! 👍

;;
*)
__docker_image_repos_and_tags_and_ids
esac
Copy link
Member

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? 👼

Copy link
Member Author

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.

@tianon
Copy link
Member

tianon commented Dec 31, 2014

Other than my one tiny nit, LGTM! Very nice work. ⭐

@jessfraz
Copy link
Contributor

Yayyyy You came back for more! LGTM after that fix :)

@albers
Copy link
Member Author

albers commented Jan 1, 2015

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>
@tianon
Copy link
Member

tianon commented Jan 1, 2015

Awesome, thanks so much @albers ❤️ This is haaaawt 👍

@tianon
Copy link
Member

tianon commented Jan 1, 2015

LGTM

tianon added a commit that referenced this pull request Jan 1, 2015
Add options to bash completion and sort options
@tianon tianon merged commit b2ab733 into moby:master Jan 1, 2015
@albers albers deleted the bash-completion branch January 2, 2015 08:43
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.

None yet

3 participants