mirror of https://github.com/docker/cli.git
Move zsh completion logic to new subcommand: history
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
9d35c2f68b
commit
4d4d5b199e
|
@ -925,7 +925,12 @@ __docker_image_subcommand() {
|
||||||
"($help -):path or URL:_directories" && ret=0
|
"($help -):path or URL:_directories" && ret=0
|
||||||
;;
|
;;
|
||||||
(history)
|
(history)
|
||||||
__docker_subcommand && ret=0
|
_arguments $(__docker_arguments) \
|
||||||
|
$opts_help \
|
||||||
|
"($help -H --human)"{-H,--human}"[Print sizes and dates in human readable format]" \
|
||||||
|
"($help)--no-trunc[Do not truncate output]" \
|
||||||
|
"($help -q --quiet)"{-q,--quiet}"[Only show numeric IDs]" \
|
||||||
|
"($help -)*: :__docker_complete_images" && ret=0
|
||||||
;;
|
;;
|
||||||
(import)
|
(import)
|
||||||
__docker_subcommand && ret=0
|
__docker_subcommand && ret=0
|
||||||
|
@ -2057,12 +2062,7 @@ __docker_subcommand() {
|
||||||
"($help)--format=[Format the output using the given go template]:template: " && ret=0
|
"($help)--format=[Format the output using the given go template]:template: " && ret=0
|
||||||
;;
|
;;
|
||||||
(history)
|
(history)
|
||||||
_arguments $(__docker_arguments) \
|
__docker_image_subcommand && ret=0
|
||||||
$opts_help \
|
|
||||||
"($help -H --human)"{-H,--human}"[Print sizes and dates in human readable format]" \
|
|
||||||
"($help)--no-trunc[Do not truncate output]" \
|
|
||||||
"($help -q --quiet)"{-q,--quiet}"[Only show numeric IDs]" \
|
|
||||||
"($help -)*: :__docker_complete_images" && ret=0
|
|
||||||
;;
|
;;
|
||||||
(image)
|
(image)
|
||||||
local curcontext="$curcontext" state
|
local curcontext="$curcontext" state
|
||||||
|
|
Loading…
Reference in New Issue