From 0144aba2f62d2115b4a25d75864ac8fe6845245d Mon Sep 17 00:00:00 2001 From: Steve Durrheimer Date: Sun, 30 Oct 2016 21:43:20 +0100 Subject: [PATCH] Move zsh completion logic to new subcommand: history Signed-off-by: Steve Durrheimer Upstream-commit: 2014e787309d3eb1fcf26ffd324deef2c2177d7a Component: engine --- components/engine/contrib/completion/zsh/_docker | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/engine/contrib/completion/zsh/_docker b/components/engine/contrib/completion/zsh/_docker index e2fa5e52e6..a86aeb118f 100644 --- a/components/engine/contrib/completion/zsh/_docker +++ b/components/engine/contrib/completion/zsh/_docker @@ -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