Bash completion supports multiple stacks in stack rm

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 50ea10e293
Component: cli
This commit is contained in:
Harald Albers
2017-04-11 08:29:55 +02:00
committed by Tibor Vass
parent c040c93b7d
commit 193605c9b2

View File

@ -4078,11 +4078,7 @@ _docker_stack_rm() {
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
;;
*)
local counter=$(__docker_pos_first_nonflag)
if [ $cword -eq $counter ]; then
__docker_complete_stacks
fi
;;
__docker_complete_stacks
esac
}