commit: 5cc6721ec88af48b1f5ba27d142e3258c80d6320
Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 20 05:29:22 2014 +0000
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Dec 20 05:30:48 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/zsh-completion.git;a=commit;h=5cc6721e
_g-cpan: add initial g-cpan completion support
---
src/_g-cpan | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
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: