Move zsh completion logic to new subcommand: tag

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
master
Steve Durrheimer 2016-10-30 22:07:25 +01:00 committed by Tibor Vass
parent a3e4ac1d2f
commit e3711a11f2
1 changed files with 5 additions and 5 deletions

View File

@ -999,7 +999,10 @@ __docker_image_subcommand() {
"($help -)*: :__docker_complete_images" && ret=0
;;
(tag)
__docker_subcommand && ret=0
_arguments $(__docker_arguments) \
$opts_help \
"($help -):source:__docker_complete_images"\
"($help -):destination:__docker_complete_repositories_with_tags" && ret=0
;;
(help)
_arguments $(__docker_arguments) ":subcommand:__docker_container_commands" && ret=0
@ -2283,10 +2286,7 @@ __docker_subcommand() {
esac
;;
(tag)
_arguments $(__docker_arguments) \
$opts_help \
"($help -):source:__docker_complete_images"\
"($help -):destination:__docker_complete_repositories_with_tags" && ret=0
__docker_image_subcommand && ret=0
;;
(volume)
local curcontext="$curcontext" state