Merge pull request #23663 from albers/completion-swarm-update--cert-expiry

bash completion for `docker swarm update --cert-expiry`
This commit is contained in:
Vincent Demeester 2016-06-17 18:15:56 +02:00 committed by GitHub
commit 6d47b06094

View file

@ -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
}