mirror of https://github.com/docker/cli.git
Move zsh completion logic to new subcommand: import
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
4d4d5b199e
commit
f8829f20b4
|
@ -933,7 +933,12 @@ __docker_image_subcommand() {
|
||||||
"($help -)*: :__docker_complete_images" && ret=0
|
"($help -)*: :__docker_complete_images" && ret=0
|
||||||
;;
|
;;
|
||||||
(import)
|
(import)
|
||||||
__docker_subcommand && ret=0
|
_arguments $(__docker_arguments) \
|
||||||
|
$opts_help \
|
||||||
|
"($help)*"{-c=,--change=}"[Apply Dockerfile instruction to the created image]:Dockerfile:_files" \
|
||||||
|
"($help -m --message)"{-m=,--message=}"[Commit message for imported image]:message: " \
|
||||||
|
"($help -):URL:(- http:// file://)" \
|
||||||
|
"($help -): :__docker_complete_repositories_with_tags" && ret=0
|
||||||
;;
|
;;
|
||||||
(inspect)
|
(inspect)
|
||||||
__docker_subcommand && ret=0
|
__docker_subcommand && ret=0
|
||||||
|
@ -2099,12 +2104,7 @@ __docker_subcommand() {
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
(import)
|
(import)
|
||||||
_arguments $(__docker_arguments) \
|
__docker_image_subcommand && ret=0
|
||||||
$opts_help \
|
|
||||||
"($help)*"{-c=,--change=}"[Apply Dockerfile instruction to the created image]:Dockerfile:_files" \
|
|
||||||
"($help -m --message)"{-m=,--message=}"[Commit message for imported image]:message: " \
|
|
||||||
"($help -):URL:(- http:// file://)" \
|
|
||||||
"($help -): :__docker_complete_repositories_with_tags" && ret=0
|
|
||||||
;;
|
;;
|
||||||
(info|version)
|
(info|version)
|
||||||
_arguments $(__docker_arguments) \
|
_arguments $(__docker_arguments) \
|
||||||
|
|
Loading…
Reference in New Issue