Move zsh completion logic to new subcommand: rename

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2016-10-30 16:52:41 +01:00
parent 4ffc37224d
commit fc6bd22725
No known key found for this signature in database
GPG key ID: 8F443EBA70F74839

View file

@ -727,7 +727,10 @@ __docker_container_subcommand() {
# @TODO
;;
(rename)
__docker_subcommand && ret=0
_arguments $(__docker_arguments) \
$opts_help \
"($help -):old name:__docker_complete_containers" \
"($help -):new name: " && ret=0
;;
(restart)
__docker_subcommand && ret=0
@ -2119,10 +2122,7 @@ __docker_subcommand() {
"($help -): :__docker_images" && ret=0
;;
(rename)
_arguments $(__docker_arguments) \
$opts_help \
"($help -):old name:__docker_complete_containers" \
"($help -):new name: " && ret=0
__docker_container_subcommand && ret=0
;;
(stop)
_arguments $(__docker_arguments) \