Skip to content

Add bash completion for docker trust commands - #609

Merged
vdemeester merged 2 commits into
docker:masterfrom
albers:completion-trust
Oct 31, 2017
Merged

Add bash completion for docker trust commands#609
vdemeester merged 2 commits into
docker:masterfrom
albers:completion-trust

Conversation

@albers

Copy link
Copy Markdown
Collaborator

This adds bash completion for #472.

This should go into 17.10.0 because the feature is present in that release.

Removes a copy & paste leftover.
Signed-off-by: Harald Albers <github@albersweb.de>
Signed-off-by: Harald Albers <github@albersweb.de>
@thaJeztah

Copy link
Copy Markdown
Member

IIRC, we marked these commands "experimental" (which is a bit tricky, because it's a client-side only feature, so we don't currently hide them).

I don't see a real harm in including them in the completion scripts (as 17.10 is an edge release, so no long-term consequences)

@riyazdf PTAL

@albers

Copy link
Copy Markdown
CollaboratorAuthor

@thaJeztah The commands are only considered in bash completion if the CLI runs against an experimental server.

@riyazdf

Copy link
Copy Markdown

awesome, thanks @albers! I am not familiar with how bash completion works so it'd be best if someone else can provide review/approval here.

@thaJeztah

Copy link
Copy Markdown
Member

ah, yes, I forgot for a minute we added the check for experimental here as well 👍

@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

@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 🐮

@vdemeester
vdemeester merged commit d019734 into docker:masterOct 31, 2017
@albers
albers deleted the completion-trust branch October 31, 2017 10:28
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.

5 participants

@albers@thaJeztah@riyazdf@vdemeester@GordonTheTurtle