Add zsh completion for 'docker network ls --filter scope'

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2017-03-26 17:04:59 +02:00 committed by Tibor Vass
parent 51a4fbbf1f
commit 91d886adc4
1 changed files with 7 additions and 3 deletions

View File

@ -1115,16 +1115,20 @@ __docker_network_complete_ls_filters() {
(name) (name)
__docker_complete_networks_names && ret=0 __docker_complete_networks_names && ret=0
;; ;;
(scope)
opts=('global' 'local' 'swarm')
_describe -t scope-filter-opts "Scope filter options" opts && ret=0
;;
(type) (type)
type_opts=('builtin' 'custom') opts=('builtin' 'custom')
_describe -t type-filter-opts "Type Filter Options" type_opts && ret=0 _describe -t type-filter-opts "Type filter options" opts && ret=0
;; ;;
*) *)
_message 'value' && ret=0 _message 'value' && ret=0
;; ;;
esac esac
else else
opts=('driver' 'id' 'label' 'name' 'type') opts=('driver' 'id' 'label' 'name' 'scope' 'type')
_describe -t filter-opts "Filter Options" opts -qS "=" && ret=0 _describe -t filter-opts "Filter Options" opts -qS "=" && ret=0
fi fi