1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Move zsh completion logic to new subcommand: history

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2016-10-30 21:43:20 +01:00
parent d3305a17e1
commit 2014e78730
No known key found for this signature in database
GPG key ID: 8F443EBA70F74839

View file

@ -925,7 +925,12 @@ __docker_image_subcommand() {
"($help -):path or URL:_directories" && ret=0
;;
(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)
__docker_subcommand && ret=0
@ -2051,12 +2056,7 @@ __docker_subcommand() {
"($help)--format=[Format the output using the given go template]:template: " && ret=0
;;
(history)
_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
__docker_image_subcommand && ret=0
;;
(image)
local curcontext="$curcontext" state