Skip to content

Commit

Permalink
bash completion for docker swarm update --cert-expiry
Browse files Browse the repository at this point in the history
Signed-off-by: Harald Albers <[email protected]>
(cherry picked from commit dc2fc75)
  • Loading branch information
albers authored and Tibor Vass committed Jun 17, 2016
1 parent 445f4f2 commit fcdd4d4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion contrib/completion/bash/docker
Original file line number Diff line number Diff line change
Expand Up @@ -1639,9 +1639,15 @@ _docker_swarm_join() {
}

_docker_swarm_update() {
case "$prev" in
--auto-accept|--cert-expiry|--dispatcher-heartbeat|--secret|--task-history-limit)
return
;;
esac

case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--auto-accept --dispatcher-heartbeat --help --secret --task-history-limit" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--auto-accept --cert-expiry --dispatcher-heartbeat --help --secret --task-history-limit" -- "$cur" ) )
;;
esac
}
Expand Down

0 comments on commit fcdd4d4

Please sign in to comment.