Browse Source

add zsh completion for push

Signed-off-by: Ke Xu <[email protected]>
Ke Xu 9 years ago
parent
commit
a0a90b2352
1 changed files with 6 additions and 0 deletions
  1. 6 0
      contrib/completion/zsh/_docker-compose

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

@@ -278,6 +278,12 @@ __docker-compose_subcommand() {
                 '--ignore-pull-failures[Pull what it can and ignores images with pull failures.]' \
                 '*:services:__docker-compose_services_from_image' && ret=0
             ;;
+        (push)
+            _arguments \
+                $opts_help \
+                '--ignore-push-failures[Push what it can and ignores images with push failures.]' \
+                '*:services:__docker-compose_services' && ret=0
+            ;;
         (rm)
             _arguments \
                 $opts_help \