Merge pull request #23098 from capkurmagati/23097-fix-zsh-completion-docker-rm-f

fixes #23097 zsh completion on `docker rm -f`
This commit is contained in:
Vincent Demeester 2016-06-06 09:20:16 +02:00
commit 3ac1787b7e

View file

@ -1138,7 +1138,16 @@ __docker_subcommand() {
"($help -f --force)"{-f,--force}"[Force removal]" \
"($help -l --link)"{-l,--link}"[Remove the specified link and not the underlying container]" \
"($help -v --volumes)"{-v,--volumes}"[Remove the volumes associated to the container]" \
"($help -)*:containers:__docker_stoppedcontainers" && ret=0
"($help -)*:containers:->values" && ret=0
case $state in
(values)
if [[ ${words[(r)-f]} == -f || ${words[(r)--force]} == --force ]]; then
__docker_containers && ret=0
else
__docker_stoppedcontainers && ret=0
fi
;;
esac
;;
(rmi)
_arguments $(__docker_arguments) \