mirror of https://github.com/docker/cli.git
Add zsh completion for 'docker service ls --filter mode'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
396925bab0
commit
9be3a2cec8
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue