Skip to content

Updates to bash completion for dockerd#282

Merged
vieux merged 6 commits into
docker:masterfrom
albers:completion-daemon-updates
Jul 4, 2017
Merged

Updates to bash completion for dockerd#282
vieux merged 6 commits into
docker:masterfrom
albers:completion-daemon-updates

Conversation

@albers
Copy link
Copy Markdown
Collaborator

@albers albers commented Jul 3, 2017

A bunch of options were missing in bash completion of dockerd.
See individual commit messages for details and references.
ping @sdurrheimer for zsh completion

albers added 5 commits July 3, 2017 13:09
This adds bash completion for moby/moby#24237.

Signed-off-by: Harald Albers <github@albersweb.de>
Signed-off-by: Harald Albers <github@albersweb.de>
This adds bash completion for moby/moby#32944.

Signed-off-by: Harald Albers <github@albersweb.de>
`--default-runtime` was added in moby/moby#22983

Signed-off-by: Harald Albers <github@albersweb.de>
This adds bash completion for moby/moby#23430.

Signed-off-by: Harald Albers <github@albersweb.de>
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jul 3, 2017

Codecov Report

Merging #282 into master will decrease coverage by 0.3%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #282      +/-   ##
==========================================
- Coverage   48.74%   48.43%   -0.31%     
==========================================
  Files         173      173              
  Lines       11750    11748       -2     
==========================================
- Hits         5727     5690      -37     
- Misses       5661     5697      +36     
+ Partials      362      361       -1

@albers albers changed the title Updates to bash completion of dockerd Updates to bash completion for dockerd Jul 3, 2017
Copy link
Copy Markdown
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.

LGTM, left one nit, but no blocker for this PR

Comment thread contrib/completion/bash/docker Outdated
return
;;
--metrics-addr)
__docker_complete_local_interfaces --ip-only
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wonder if it would be "cleaner" to have a separate function for ip-addresses

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@thaJeztah updated, thanks for the hint.

@albers albers force-pushed the completion-daemon-updates branch from 5be3987 to f4d3b13 Compare July 4, 2017 12:39
`--metrics-addr` does not accept network interface names.
Therefore `__docker_local_interfaces` was refined for this feature to
optionally exclude interface names.

Note that although `--metrics-addr` is experimental, it cannot be
selectively enabled in bash completion because the test for the daemon
running in experimental mode requires a running daemon. As this
completion pertains to starting the daemon, this requirement is not met.

Signed-off-by: Harald Albers <github@albersweb.de>
@albers albers force-pushed the completion-daemon-updates branch from f4d3b13 to 0ea31af Compare July 4, 2017 12:40
@vieux
Copy link
Copy Markdown
Contributor

vieux commented Jul 4, 2017

LGTM

@vieux vieux merged commit 42a31ff into docker:master Jul 4, 2017
@GordonTheTurtle GordonTheTurtle added this to the 17.07.0 milestone Jul 4, 2017
@albers albers deleted the completion-daemon-updates branch July 4, 2017 15:17
nobiit pushed a commit to nobidev/docker-cli that referenced this pull request Nov 19, 2025
[17.11] bump version to 17.11.0-ce-rc1
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