Move zsh completion logic to new subcommand: rm

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2016-10-30 22:02:32 +01:00 committed by Tibor Vass
parent 82dfd60819
commit f812608ff4
1 changed files with 7 additions and 7 deletions

View File

@ -986,8 +986,11 @@ __docker_image_subcommand() {
"($help -): :__docker_complete_images" && ret=0 "($help -): :__docker_complete_images" && ret=0
;; ;;
(rm) (rm)
words[1]='rmi' _arguments $(__docker_arguments) \
__docker_subcommand && ret=0 $opts_help \
"($help -f --force)"{-f,--force}"[Force removal]" \
"($help)--no-prune[Do not delete untagged parents]" \
"($help -)*: :__docker_complete_images" && ret=0
;; ;;
(save) (save)
__docker_subcommand && ret=0 __docker_subcommand && ret=0
@ -2222,11 +2225,8 @@ __docker_subcommand() {
__docker_image_subcommand && ret=0 __docker_image_subcommand && ret=0
;; ;;
(rmi) (rmi)
_arguments $(__docker_arguments) \ words[1]='rm'
$opts_help \ __docker_image_subcommand && ret=0
"($help -f --force)"{-f,--force}"[Force removal]" \
"($help)--no-prune[Do not delete untagged parents]" \
"($help -)*: :__docker_complete_images" && ret=0
;; ;;
(save) (save)
_arguments $(__docker_arguments) \ _arguments $(__docker_arguments) \