Browse Source

First take on zsh-completion functionality for gclient.

It's very basic, only subcommands.

If this would evolve, generation of _gclient should be automized (like a separate command
or some other tool.)

Review URL: http://codereview.chromium.org/546069

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@36521 0039d316-1c4b-4281-b951-d872f2087c98
antonm@chromium.org 15 years ago
parent
commit
41cdced81d
2 changed files with 21 additions and 0 deletions
  1. 6 0
      zsh-goodies/README
  2. 15 0
      zsh-goodies/_gclient

+ 6 - 0
zsh-goodies/README

@@ -0,0 +1,6 @@
+Various utilities for zsh.
+
+_gclient:
+  completion for gclient command.
+  To install add a path to zsh-goodies into your fpath variable, e.g.:
+    fpath=(<path to depot_tools>/zsh-goodies $fpath)

+ 15 - 0
zsh-goodies/_gclient

@@ -0,0 +1,15 @@
+#compdef gclient
+
+_values commands \
+    cleanup \
+    config  \
+    diff    \
+    export  \
+    help    \
+    pack    \
+    status  \
+    sync    \
+    update  \
+    revert  \
+    runhooks\
+    revinfo