Przeglądaj źródła

add zsh completion support for bundle

Signed-off-by: Ke Xu <[email protected]>
Ke Xu 9 lat temu
rodzic
commit
aa7f522ab0
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      contrib/completion/zsh/_docker-compose

+ 5 - 0
contrib/completion/zsh/_docker-compose

@@ -197,6 +197,11 @@ __docker-compose_subcommand() {
                 '--pull[Always attempt to pull a newer version of the image.]' \
                 '*:services:__docker-compose_services_from_build' && ret=0
             ;;
+        (bundle)
+            _arguments \
+                $opts_help \
+                '(--output -o)'{--output,-o}'[Path to write the bundle file to. Defaults to "<project name>.dsb".]:file:_files' && ret=0
+            ;;
         (config)
             _arguments \
                 $opts_help \