Add zsh completion logic to new subcommand: inspect

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2016-10-30 21:52:45 +01:00 committed by Tibor Vass
parent f8829f20b4
commit 8fa658335b
1 changed files with 4 additions and 1 deletions

View File

@ -941,7 +941,10 @@ __docker_image_subcommand() {
"($help -): :__docker_complete_repositories_with_tags" && ret=0 "($help -): :__docker_complete_repositories_with_tags" && ret=0
;; ;;
(inspect) (inspect)
__docker_subcommand && ret=0 _arguments $(__docker_arguments) \
$opts_help \
"($help -f --format)"{-f=,--format=}"[Format the output using the given go template]:template: " \
"($help -)*:images:__docker_complete_images" && ret=0
;; ;;
(load) (load)
__docker_subcommand && ret=0 __docker_subcommand && ret=0