mirror of https://github.com/docker/cli.git
Move zsh completion logic to new subcommand: rename
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
64ea2f57e8
commit
25fc254d3a
|
@ -727,7 +727,10 @@ __docker_container_subcommand() {
|
||||||
# @TODO
|
# @TODO
|
||||||
;;
|
;;
|
||||||
(rename)
|
(rename)
|
||||||
__docker_subcommand && ret=0
|
_arguments $(__docker_arguments) \
|
||||||
|
$opts_help \
|
||||||
|
"($help -):old name:__docker_complete_containers" \
|
||||||
|
"($help -):new name: " && ret=0
|
||||||
;;
|
;;
|
||||||
(restart)
|
(restart)
|
||||||
__docker_subcommand && ret=0
|
__docker_subcommand && ret=0
|
||||||
|
@ -2119,10 +2122,7 @@ __docker_subcommand() {
|
||||||
"($help -): :__docker_images" && ret=0
|
"($help -): :__docker_images" && ret=0
|
||||||
;;
|
;;
|
||||||
(rename)
|
(rename)
|
||||||
_arguments $(__docker_arguments) \
|
__docker_container_subcommand && ret=0
|
||||||
$opts_help \
|
|
||||||
"($help -):old name:__docker_complete_containers" \
|
|
||||||
"($help -):new name: " && ret=0
|
|
||||||
;;
|
;;
|
||||||
(stop)
|
(stop)
|
||||||
_arguments $(__docker_arguments) \
|
_arguments $(__docker_arguments) \
|
||||||
|
|
Loading…
Reference in New Issue