1
0
mirror of https://github.com/docker/cli.git synced 2026-01-25 03:42:05 +03:00

Move zsh completion logic to new subcommand: tag

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: cc879af088f6172f7b94fcfb94ef18716cd0c79f
Component: engine
This commit is contained in:
Steve Durrheimer
2016-10-30 22:07:25 +01:00
parent cfdb60cb73
commit 2477845c35

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
@@ -2277,10 +2280,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