Merge pull request #32514 from albers/completion-multiple-stack-rm

Bash completion supports multiple stacks in `stack rm`
This commit is contained in:
Vincent Demeester
2017-04-11 11:31:39 +02:00
committed by GitHub

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
}