1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #29606 from albers/completion-plugins-bundled

Improve bash completion for bundled plugins
This commit is contained in:
Brian Goff 2016-12-21 17:12:27 -05:00 committed by GitHub
commit 76b4f5ac28

View file

@ -262,7 +262,7 @@ __docker_plugins_bundled() {
esac
done
local plugins=($(__docker_q info | sed -n "/^Plugins/,/^[^ ]/s/ $type: //p"))
local plugins=($(__docker_q info --format "{{range \$i, \$p := .Plugins.$type}}{{.}} {{end}}"))
for del in "${remove[@]}" ; do
plugins=(${plugins[@]/$del/})
done