Merge pull request #32882 from albers/completion-stack-ls--format
Add bash completion for `stack ls --format` Upstream-commit: 68a5336b61c8b252966b582f0e4d08c6ae0bdb63 Component: engine
This commit is contained in:
@@ -4033,9 +4033,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