mirror of https://github.com/docker/cli.git
Improve bash completion for bundled plugins
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
08ba19c291
commit
388c8f8a30
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue