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

Merge pull request #32114 from sdurrheimer/zsh-completion-network-ls-scope-filter

Add zsh completion for 'docker network ls --filter scope'
This commit is contained in:
Sebastiaan van Stijn 2017-03-27 18:36:08 +02:00 committed by GitHub
commit ae811e9597

View file

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