mirror of https://github.com/docker/cli.git
Add bash completion for `stack ls --format`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
3e646fed80
commit
513ea82edd
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue