mirror of https://github.com/docker/cli.git
Move zsh completion logic to new subcommand: tag
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
a3e4ac1d2f
commit
e3711a11f2
|
@ -999,7 +999,10 @@ __docker_image_subcommand() {
|
||||||
"($help -)*: :__docker_complete_images" && ret=0
|
"($help -)*: :__docker_complete_images" && ret=0
|
||||||
;;
|
;;
|
||||||
(tag)
|
(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)
|
(help)
|
||||||
_arguments $(__docker_arguments) ":subcommand:__docker_container_commands" && ret=0
|
_arguments $(__docker_arguments) ":subcommand:__docker_container_commands" && ret=0
|
||||||
|
@ -2283,10 +2286,7 @@ __docker_subcommand() {
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
(tag)
|
(tag)
|
||||||
_arguments $(__docker_arguments) \
|
__docker_image_subcommand && ret=0
|
||||||
$opts_help \
|
|
||||||
"($help -):source:__docker_complete_images"\
|
|
||||||
"($help -):destination:__docker_complete_repositories_with_tags" && ret=0
|
|
||||||
;;
|
;;
|
||||||
(volume)
|
(volume)
|
||||||
local curcontext="$curcontext" state
|
local curcontext="$curcontext" state
|
||||||
|
|
Loading…
Reference in New Issue