Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Add bash completion for docker-machine ls filters #4087

Merged
merged 1 commit into from May 12, 2017

Conversation

albers
Copy link
Contributor

@albers albers commented May 11, 2017

This adds bash completion of

  • filters for the --filter option
  • drivers for the driver filter
  • states for the state filter

to bash completion for docker-machine ls

To achieve this, I had to factor out the list of drivers from docker-machine create.
I also needed helper functions which I took over from Docker's bash completion.
These functions also take care of the fact that MacOS ships with an ancient version of bash and an outdated version of bash-completion.

Signed-off-by: Harald Albers <github@albersweb.de>
@nathanleclaire
Copy link
Contributor

LGTM

Thanks @albers !

@nathanleclaire nathanleclaire merged commit 9e92ef1 into docker:master May 12, 2017
@albers albers deleted the completion-ls--filters branch May 12, 2017 07:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants