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

Add zsh completion for 'docker network ls -f driver'

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2016-04-29 22:39:38 +02:00
parent 7a56581297
commit d6780c3190
No known key found for this signature in database
GPG key ID: 5435BD02508176B7

View file

@ -317,6 +317,9 @@ __docker_network_complete_ls_filters() {
if compset -P '*='; then
case "${${words[-1]%=*}#*=}" in
(driver)
__docker_plugins Network && ret=0
;;
(id)
__docker_networks_ids && ret=0
;;
@ -332,7 +335,7 @@ __docker_network_complete_ls_filters() {
;;
esac
else
opts=('id' 'name' 'type')
opts=('driver' 'id' 'name' 'type')
_describe -t filter-opts "Filter Options" opts -qS "=" && ret=0
fi