Skip to content

Add bash completion for docker config command family#283

Merged
vdemeester merged 3 commits into
docker:masterfrom
albers:completion-configs
Jul 20, 2017
Merged

Add bash completion for docker config command family#283
vdemeester merged 3 commits into
docker:masterfrom
albers:completion-configs

Conversation

@albers
Copy link
Copy Markdown
Collaborator

@albers albers commented Jul 3, 2017

This adds bash completion for #45.
Ping @sdurrheimer for zsh completion

Additional commits add related functionality/refactorings:

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jul 3, 2017

Codecov Report

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

@@          Coverage Diff           @@
##           master    #283   +/-   ##
======================================
  Coverage    48.7%   48.7%           
======================================
  Files         185     185           
  Lines       12168   12168           
======================================
  Hits         5926    5926           
  Misses       5875    5875           
  Partials      367     367

@mlaventure
Copy link
Copy Markdown
Contributor

@albers do you think it'd be possible to have path completion enabled for config create ?

i.e.:

$ docker config my-<tab>

correctly doesn't offer suggestion

but

$ docker config my-config /etc/<tab>

Doesn't either, and I would have expected it to do so.

albers added 3 commits July 7, 2017 12:03
This adds bash completion for
- docker#45
- moby/moby#32336

Signed-off-by: Harald Albers <github@albersweb.de>
Signed-off-by: Harald Albers <github@albersweb.de>
The completion logic should be implemented in the documented subcommands
(ls, rm) and delegated to from the aliases (list, remove).
For the rm|remove pair, this was implemented vice versa.

Signed-off-by: Harald Albers <github@albersweb.de>
@albers albers force-pushed the completion-configs branch from b5964ac to d585e55 Compare July 7, 2017 10:04
@albers
Copy link
Copy Markdown
Collaborator Author

albers commented Jul 7, 2017

@mlaventure Nice catch, thanks a lot. I added path completion to docker config create.

Copy link
Copy Markdown
Contributor

@mlaventure mlaventure left a comment

Choose a reason for hiding this comment

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

Thanks!

It works perfectly now, amazing job as always, really appreciated :)

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 a4d7698 into docker:master Jul 20, 2017
@GordonTheTurtle GordonTheTurtle added this to the 17.07.0 milestone Jul 20, 2017
@albers albers deleted the completion-configs branch July 20, 2017 08:05
nobiit pushed a commit to nobidev/docker-cli that referenced this pull request Nov 19, 2025
[17.11] Add Ubuntu Artful (17.10)
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