mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #32882 from albers/completion-stack-ls--format
Add bash completion for `stack ls --format`
This commit is contained in:
commit
68a5336b61
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue