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 committed by Tibor Vass
parent 396925bab0
commit 9be3a2cec8
1 changed files with 5 additions and 1 deletions

View File

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