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 support for generic resources to bash completion #749

Merged
merged 1 commit into from
Dec 15, 2017

Conversation

albers
Copy link
Collaborator

@albers albers commented Dec 13, 2017

Adds bash completion for #429:

  • service create --generic-resource
  • service update --generic-resource-(add|rm)
  • dockerd --node-generic-resource

@codecov-io
Copy link

codecov-io commented Dec 13, 2017

Codecov Report

Merging #749 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #749   +/-   ##
=======================================
  Coverage   53.45%   53.45%           
=======================================
  Files         218      218           
  Lines       14613    14613           
=======================================
  Hits         7811     7811           
  Misses       6321     6321           
  Partials      481      481

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

one nit, but LGTM otherwise

@@ -3459,6 +3461,8 @@ _docker_service_update_and_create() {
--dns-search-rm
--group-add
--group-rm
--generic-resource-add
Copy link
Member

Choose a reason for hiding this comment

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

Do you want to keep this alphabetical? If so, it should be above the --group-... lines 🤗

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The alphabet is really comlicated...
Thanks for catching. PR is updated.

Adds bash completion for
- `service create --generic-resource`
- `service update --generic-resource-(add|rm)`
- `dockerd --node-generic-resource`

Signed-off-by: Harald Albers <github@albersweb.de>
@albers albers force-pushed the completion--generic-resource branch from 3373a60 to 8ec80ee Compare December 15, 2017 07:56
Copy link
Collaborator

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@thaJeztah
Copy link
Member

😄 thanks!

merging, so that I can cherry-pick

@thaJeztah thaJeztah merged commit 8684b99 into docker:master Dec 15, 2017
@GordonTheTurtle GordonTheTurtle added this to the 18.01.0 milestone Dec 15, 2017
@albers albers deleted the completion--generic-resource branch December 15, 2017 12:57
@thaJeztah thaJeztah modified the milestones: 18.01.0, 17.12.0 Dec 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants