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

Fix bash completion for service create|update --detach|-d #284

Merged
merged 1 commit into from
Jul 20, 2017

Conversation

albers
Copy link
Collaborator

@albers albers commented Jul 3, 2017

In #250, I overlooked that the default value for this option is true.

I think this I was thrown back into the dark times when such options were reported like (help output from Docker 1.11.2):

  --disable-content-trust=true    Skip image verification

Anyway, this PR adapts this completion to the default behavior for boolean options that default to true:
append the =false suffix because that is the only syntax that really changes behavior.

bash completion usually completes boolean options that default to `true`
with the `=false` suffix because that is the only syntax that really
changes behavior.
For this option, I implemented completion falsely.

Signed-off-by: Harald Albers <github@albersweb.de>
@albers albers changed the title Improve bash completion for service create|update --detach|-d Fix bash completion for service create|update --detach|-d Jul 3, 2017
@codecov-io
Copy link

codecov-io commented Jul 3, 2017

Codecov Report

Merging #284 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #284      +/-   ##
==========================================
- Coverage   48.74%   48.73%   -0.01%     
==========================================
  Files         173      173              
  Lines       11750    11750              
==========================================
- Hits         5727     5726       -1     
- Misses       5661     5662       +1     
  Partials      362      362

@vieux
Copy link
Contributor

vieux commented Jul 4, 2017

LGTM

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 🐸

@vdemeester vdemeester merged commit cc6867f into docker:master Jul 20, 2017
@GordonTheTurtle GordonTheTurtle added this to the 17.07.0 milestone Jul 20, 2017
@albers albers deleted the completion-service--detach branch July 20, 2017 08:05
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.

6 participants