aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/_ekeyword')
-rw-r--r--src/_ekeyword23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/_ekeyword b/src/_ekeyword
new file mode 100644
index 0000000..c86ebb0
--- /dev/null
+++ b/src/_ekeyword
@@ -0,0 +1,23 @@
+#compdef ekeyword
+
+local -a arguments=(
+ '(- :)'{-h,--help}'[Show this help message and exit]'
+ '(-m --manifest)'{-m,--manifest}'[Run `ebuild manifest` on the ebuild after modifying it]'
+ '(-n --dry-run)'{-n,--dry-run}'[Show what would be changed, but do not commit]'
+ '(-v --verbose)'{-v,--verbose}'[Be verbose while processing things]'
+ '(-q --quiet)'{-q,--quiet}'[Be quiet while processing things (only show errors)]'
+ '(--format)'--format':Select output format for showing differences:_values -V ekeywordsfmt "ekeywords formats" auto color-inline inline short-multi long-multi'
+ '(- :)'{-V,--version}'[Show version information]'
+)
+
+(( $+functions[_ekeywordargs] )) || _ekeywordargs() {
+ _files -g \*.ebuild
+
+ local -a keywords=(all $(_gentoo_arches))
+
+ compset -P '(\^|\~)'
+ _values -V "keywords" "gentoo arches" ${keywords[@]}
+}
+
+_arguments ${arguments[@]} "*:ekeywordargs:_ekeywordargs"
+