Add zsh completion for 'docker service ls --filter mode'

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2017-03-22 23:52:36 +01:00
parent bbce24997c
commit 94b6e810e0
No known key found for this signature in database
GPG key ID: 50C35EF88D5EF42D

View file

@ -1762,6 +1762,10 @@ __docker_service_complete_ls_filters() {
(id)
__docker_complete_services_ids && ret=0
;;
(mode)
opts=('global' 'replicated')
_describe -t mode-opts "mode options" opts && ret=0
;;
(name)
__docker_complete_services_names && ret=0
;;
@ -1770,7 +1774,7 @@ __docker_service_complete_ls_filters() {
;;
esac
else
opts=('id' 'label' 'name')
opts=('id' 'label' 'mode' 'name')
_describe -t filter-opts "filter options" opts -qS "=" && ret=0
fi