瀏覽代碼

Add zsh completion for 'docker-compose create'

Signed-off-by: Steve Durrheimer <[email protected]>
Steve Durrheimer 9 年之前
父節點
當前提交
381d58bc66
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      contrib/completion/zsh/_docker-compose

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

@@ -203,6 +203,14 @@ __docker-compose_subcommand() {
                 '(--quiet -q)'{--quiet,-q}"[Only validate the configuration, don't print anything.]" \
                 '--services[Print the service names, one per line.]' && ret=0
             ;;
+        (create)
+            _arguments \
+                $opts_help \
+                "(--no-recreate --no-build)--force-recreate[Recreate containers even if their configuration and image haven't changed. Incompatible with --no-recreate.]" \
+                "(--force-recreate)--no-build[If containers already exist, don't recreate them. Incompatible with --force-recreate.]" \
+                "(--force-recreate)--no-recreate[Don't build an image, even if it's missing]" \
+                '*:services:__docker-compose_services_all' && ret=0
+            ;;
         (down)
             _arguments \
                 $opts_help \