commit:     ce83f20e491242aabe4be81a6c6a5169c6eda3a7
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 21 09:48:58 2014 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sun Dec 21 09:48:58 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/zsh-completion.git;a=commit;h=ce83f20e

_gentoolkit: initial eshowkw completion support

Still need to work on completing comma separated arches for the '--arch'
option. We currently only take one arch completion.

---
 src/_gentoolkit | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/src/_gentoolkit b/src/_gentoolkit
index 7ed5ceb..b6a73b8 100644
--- a/src/_gentoolkit
+++ b/src/_gentoolkit
@@ -1,4 +1,4 @@
-#compdef equery euse eclean eclean-dist eclean-pkg epkginfo genpkgindex 
glsa-check revdep-rebuild
+#compdef equery euse eclean eclean-dist eclean-pkg epkginfo eshowkw 
genpkgindex glsa-check revdep-rebuild
 
 # XXX: shouldn't this go to _gentoo_package?
 _packages () {
@@ -304,6 +304,21 @@ _epkginfo () {
     '*:package:_gentoo_packages available'
 }
 
+_eshowkw () {
+  _arguments -s \
+    '(: -)'{-h,--help}'[Display help and exit]' \
+    '(: -)'{-v,--version}'[Show package version and exit]' \
+    {'(--arch)-a','(-a)--arch'}'[Display only specified 
arch(es)]:arch(es):_gentoo_arches' \
+    {'(--align)-A','(-A)--align'}'[Specify alignment for descriptions 
(default: bottom)]:alignment:((top bottom))' \
+    {'(--top-position)-T','(-T)--top-position'}'[Specify which fields we want 
to have in top listing (default: archlist)]:field:((archlist versionlist))' \
+    {'(--bold)-B','(-B)--bold'}'[Print out each other column in bold for 
easier visual separation]' \
+    {'(--color)-C','(-C)--color'}'[Force colored output]' \
+    {'(--overlays)-O','(-O)--overlays'}'[Include overlays in search]' \
+    {'(--prefix)-P','(-P)--prefix'}'[Display prefix keywords in output]' \
+    {'(--ignore-slot)-S','(-S)--ignore-slot'}'[Treat slots as irelevant during 
detection of redundant packages]' \
+    '*:package:_gentoo_packages available'
+}
+
 _genpkgindex () {
   _arguments -s \
     '(: -)'{-h,--help}'[Display help and exit]' \
@@ -385,6 +400,9 @@ case "$service" in
   epkginfo)
     _epkginfo "$@" && return 0
     ;;
+  eshowkw)
+    _eshowkw "$@" && return 0
+    ;;
   genpkgindex)
     _genpkgindex "$@" && return 0
     ;;

Reply via email to