Skip to content

Add missing filters to bash completion for docker images and docker ps#11904

Merged
jessfraz merged 1 commit intomoby:masterfrom
albers:completion-filters
Mar 30, 2015
Merged

Add missing filters to bash completion for docker images and docker ps#11904
jessfraz merged 1 commit intomoby:masterfrom
albers:completion-filters

Conversation

@albers
Copy link
Member

@albers albers commented Mar 29, 2015

Copy link
Contributor

Choose a reason for hiding this comment

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

I think these 3 lines are not need, you didn't add this in _docker_ps, why here?

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right, there is an asymmetry in this regard between the completions for docker ps and docker images. It is intended, however.
The point is that docker images takes an optional image specification argument. Without the *label=* expression, -f label= would match *) and thus complete images instead of "anything".
As docker ps has no such argument, there's no need to deal with a catch-all glob.

Copy link
Member

Choose a reason for hiding this comment

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

👍

@jessfraz jessfraz added this to the 1.6.0 milestone Mar 30, 2015
@tianon
Copy link
Member

tianon commented Mar 30, 2015

@coolljt0725 has a good question, but this LGTM otherwise 👍

@icecrime icecrime removed the dco/yes label Mar 30, 2015
@tianon
Copy link
Member

tianon commented Mar 30, 2015

cc @jfrazelle for the merge 😉

@jessfraz
Copy link
Contributor

LGTM

jessfraz pushed a commit that referenced this pull request Mar 30, 2015
Add missing filters to bash completion for docker images and docker ps
@jessfraz jessfraz merged commit 1ce39e2 into moby:master Mar 30, 2015
@albers albers deleted the completion-filters branch March 31, 2015 05:20
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