Skip to content

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

Merged
vdemeester merged 1 commit into
docker:masterfrom
albers:completion-service--detach
Jul 20, 2017
Merged

Fix bash completion for service create|update --detach|-d#284
vdemeester merged 1 commit into
docker:masterfrom
albers:completion-service--detach

Conversation

@albers
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
Contributor

vieux commented Jul 4, 2017

LGTM

Copy link
Copy Markdown
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
nobiit pushed a commit to nobidev/docker-cli that referenced this pull request Nov 19, 2025
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