Skip to content

Bash completion for docker context command family - #1619

Merged
thaJeztah merged 2 commits into
docker:masterfrom
albers:completion-context
Jan 29, 2019
Merged

Bash completion for docker context command family#1619
thaJeztah merged 2 commits into
docker:masterfrom
albers:completion-context

Conversation

@albers

Copy link
Copy Markdown
Collaborator

Ref: #1501

@codecov-io

Copy link
Copy Markdown

Codecov Report

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

@@ Coverage Diff @@## master #1619 +/- ##
=======================================
Coverage 55.16% 55.16% =======================================
Files 301 301 Lines 20384 20384 =======================================
Hits 11244 11244 Misses 8335 8335 Partials 805 805

Signed-off-by: Harald Albers <github@albersweb.de>
@dockerdocker deleted a comment from GordonTheTurtleJan 20, 2019
@albersalbers changed the title WIP: Bash completion for docker context command familyBash completion for docker context command familyJan 20, 2019
@albersalbers added this to the 19.03.0 milestone Jan 20, 2019

@simonferquelsimonferquel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please also note the --context (or -c) global flag. It should have a similar impact as --host on other completion scripts (list of containers, images etc.)
Otherwise seems good to me :)

Signed-off-by: Harald Albers <github@albersweb.de>
@albers

Copy link
Copy Markdown
CollaboratorAuthor

@simonferquel Done.

  • Added completion for the global --context option.
  • If --context is present, its value will be passed on to all docker invocations done by the completion script (like --host).

@simonferquel

Copy link
Copy Markdown
Contributor

That seems good, I can't test it right now though :/ ping @vdemeester or @thaJeztah

@silvin-lubeckisilvin-lubecki left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not a shell completion expert at all, but as far as I can tell, it looks good to me 👍

@vdemeestervdemeester left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM 🐯
/cc @thaJeztah

@thaJeztahthaJeztah left a comment

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.

LGTM, thanks!

@thaJeztah
thaJeztah merged commit a3a30fa into docker:masterJan 29, 2019
@albers
albers deleted the completion-context branch January 29, 2019 10:19
Sign up for freeto 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.

7 participants

@albers@codecov-io@simonferquel@vdemeester@thaJeztah@silvin-lubecki@GordonTheTurtle