mirror of https://github.com/docker/cli.git
Move zsh completion logic to new subcommand: rm
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
82dfd60819
commit
f812608ff4
|
@ -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) \
|
||||||
|
|
Loading…
Reference in New Issue