Add zsh completion for 'docker swarm --availability'

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2017-01-19 16:54:36 +01:00 committed by Tibor Vass
parent 8cd8ceedf6
commit ad214d7a79
1 changed files with 7 additions and 6 deletions

View File

@ -1611,7 +1611,7 @@ __docker_secret_subcommand() {
case "$words[1]" in case "$words[1]" in
(create) (create)
_arguments $(__docker_arguments) \ _arguments $(__docker_arguments) -A '-*' \
$opts_help \ $opts_help \
"($help)*"{-l=,--label=}"[Secret labels]:label: " \ "($help)*"{-l=,--label=}"[Secret labels]:label: " \
"($help -):secret: " && ret=0 "($help -):secret: " && ret=0
@ -2083,9 +2083,10 @@ __docker_swarm_subcommand() {
"($help)--task-history-limit=[Task history retention limit]:limit: " && ret=0 "($help)--task-history-limit=[Task history retention limit]:limit: " && ret=0
;; ;;
(join) (join)
_arguments $(__docker_arguments) \ _arguments $(__docker_arguments) -A '-*' \
$opts_help \ $opts_help \
"($help)--advertise-addr[Advertised address]:ip\:port: " \ "($help)--advertise-addr=[Advertised address]:ip\:port: " \
"($help)--availability=[Availability of the node]:availability:(active drain pause)" \
"($help)--listen-addr=[Listen address]:ip\:port: " \ "($help)--listen-addr=[Listen address]:ip\:port: " \
"($help)--token=[Token for entry into the swarm]:secret: " \ "($help)--token=[Token for entry into the swarm]:secret: " \
"($help -):host\:port: " && ret=0 "($help -):host\:port: " && ret=0
@ -2516,14 +2517,14 @@ __docker_subcommand() {
esac esac
;; ;;
(login) (login)
_arguments $(__docker_arguments) \ _arguments $(__docker_arguments) -A '-*' \
$opts_help \ $opts_help \
"($help -p --password)"{-p=,--password=}"[Password]:password: " \ "($help -p --password)"{-p=,--password=}"[Password]:password: " \
"($help -u --user)"{-u=,--user=}"[Username]:username: " \ "($help -u --user)"{-u=,--user=}"[Username]:username: " \
"($help -)1:server: " && ret=0 "($help -)1:server: " && ret=0
;; ;;
(logout) (logout)
_arguments $(__docker_arguments) \ _arguments $(__docker_arguments) -A '-*' \
$opts_help \ $opts_help \
"($help -)1:server: " && ret=0 "($help -)1:server: " && ret=0
;; ;;
@ -2587,7 +2588,7 @@ __docker_subcommand() {
__docker_image_subcommand && ret=0 __docker_image_subcommand && ret=0
;; ;;
(search) (search)
_arguments $(__docker_arguments) \ _arguments $(__docker_arguments) -A '-*' \
$opts_help \ $opts_help \
"($help)*"{-f=,--filter=}"[Filter values]:filter:->filter-options" \ "($help)*"{-f=,--filter=}"[Filter values]:filter:->filter-options" \
"($help)--limit=[Maximum returned search results]:limit:(1 5 10 25 50)" \ "($help)--limit=[Maximum returned search results]:limit:(1 5 10 25 50)" \