Browse code

Add zsh completion for 'docker image build --cache-from'

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>

Steve Durrheimer authored on 2016/11/13 21:50:54
Showing 1 changed files
... ...
@@ -900,7 +900,8 @@ __docker_image_subcommand() {
900 900
         (build)
901 901
             _arguments $(__docker_arguments) \
902 902
                 $opts_help \
903
-                "($help)*--build-arg[Build-time variables]:<varname>=<value>: " \
903
+                "($help)*--build-arg=[Build-time variables]:<varname>=<value>: " \
904
+                "($help)*--cache-from=[Images to consider as cache sources]: :__docker_complete_repositories_with_tags" \
904 905
                 "($help -c --cpu-shares)"{-c=,--cpu-shares=}"[CPU shares (relative weight)]:CPU shares:(0 10 100 200 500 800 1000)" \
905 906
                 "($help)--cgroup-parent=[Parent cgroup for the container]:cgroup: " \
906 907
                 "($help)--compress[Compress the build context using gzip]" \