aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2014-12-19 21:29:22 -0800
committerTim Harder <radhermit@gentoo.org>2014-12-19 21:30:48 -0800
commit5cc6721ec88af48b1f5ba27d142e3258c80d6320 (patch)
treebc251396fa7324403b4e4b5771d1eb616acce324
parent_portage: remove old tbz2tool completion support (diff)
downloadzsh-completion-5cc6721ec88af48b1f5ba27d142e3258c80d6320.tar.gz
zsh-completion-5cc6721ec88af48b1f5ba27d142e3258c80d6320.tar.bz2
zsh-completion-5cc6721ec88af48b1f5ba27d142e3258c80d6320.zip
_g-cpan: add initial g-cpan completion support
-rw-r--r--src/_g-cpan25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/_g-cpan b/src/_g-cpan
new file mode 100644
index 0000000..5cee5b5
--- /dev/null
+++ b/src/_g-cpan
@@ -0,0 +1,25 @@
+#compdef g-cpan
+# g-cpan-0.16.6
+
+local arguments
+
+arguments=(
+ '(- :)'{--help,-h}'[Show help]'
+ {'(--generate)-g','(-g)--generate'}'[Generate ebuilds only (Requires working overlays)]'
+ {'(--install)-i','(-i)--install'}'[Try to generate ebuild for the given module name and, if successful, emerge it. Important : installation requires exact CPAN Module Name.]'
+ {'(--list)-l','(-l)--list'}'[This command generates a list of the Perl modules and ebuilds handled by g-cpan.]'
+ {'(--log)-L','(-L)--log'}'[Log the output of g-cpan]'
+ {'(--search)-s','(-s)--search'}'[Search CPAN for the given expression (similar to the "m /EXPR/" from the CPAN Shell). Searches are case insensitive.]'
+ {'(--upgrade)-u','(-u)--upgrade'}'[Try to list and upgrade all Perl modules managed by g-cpan. It generate up-to-date ebuilds, then emerge then.]'
+ {'(--verbose)-v','(-v)--verbose'}'[Enable (some) verbose output.]'
+ "--cpan_reload[Reload the CPAN index]"
+ {'(--ask)-a','(-a)--ask'}'[Ask before installing]'
+ {'(--buildpkg)-b','(-b)--buildpkg'}'[Tells emerge to build binary packages for all ebuilds processed in addition to actually merging the packages.]'
+ {'(--buildpkgonly)-B','(-B)--buildpkgonly'}'[Creates binary packages for all ebuilds processed without actually mering the packages.]'
+ {'(--pretend)-p','(-p)--pretend'}"[Pretend (show actions, but don't emerge). This still generates new ebuilds.]"
+ '*:modules:'
+)
+
+_arguments $arguments
+
+# vim: set et sw=2 ts=2 ft=zsh: