Add bash completion for `stack ls --format`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2017-04-27 10:01:17 +02:00 committed by Tibor Vass
parent 3e646fed80
commit 513ea82edd
1 changed files with 7 additions and 1 deletions

View File

@ -4033,9 +4033,15 @@ _docker_stack_list() {
} }
_docker_stack_ls() { _docker_stack_ls() {
case "$prev" in
--format)
return
;;
esac
case "$cur" in case "$cur" in
-*) -*)
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) ) COMPREPLY=( $( compgen -W "--format --help" -- "$cur" ) )
;; ;;
esac esac
} }