mirror of https://github.com/docker/cli.git
Add zsh completion for 'docker network ls -f driver'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
51e43d3bda
commit
d3274f9217
|
@ -317,6 +317,9 @@ __docker_network_complete_ls_filters() {
|
||||||
|
|
||||||
if compset -P '*='; then
|
if compset -P '*='; then
|
||||||
case "${${words[-1]%=*}#*=}" in
|
case "${${words[-1]%=*}#*=}" in
|
||||||
|
(driver)
|
||||||
|
__docker_plugins Network && ret=0
|
||||||
|
;;
|
||||||
(id)
|
(id)
|
||||||
__docker_networks_ids && ret=0
|
__docker_networks_ids && ret=0
|
||||||
;;
|
;;
|
||||||
|
@ -332,7 +335,7 @@ __docker_network_complete_ls_filters() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
opts=('id' 'name' 'type')
|
opts=('driver' 'id' 'name' 'type')
|
||||||
_describe -t filter-opts "Filter Options" opts -qS "=" && ret=0
|
_describe -t filter-opts "Filter Options" opts -qS "=" && ret=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue