Add bash completion for stack ls --format
Signed-off-by: Harald Albers <github@albersweb.de> Upstream-commit: b065ed3ec24037f4f66a0e4a2656505adb8287ee Component: engine
This commit is contained in:
@@ -4028,9 +4028,15 @@ _docker_stack_list() {
|
||||
}
|
||||
|
||||
_docker_stack_ls() {
|
||||
case "$prev" in
|
||||
--format)
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "--format --help" -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user