Completion for the Gentoo `eix' command

This commit is contained in:
Sebastian Gniazdowski 2019-10-28 22:45:29 +01:00
parent 8def5f1583
commit 8329bdef96
1 changed files with 148 additions and 0 deletions

148
src/_eix Normal file
View File

@ -0,0 +1,148 @@
#compdef eix
# Copyright (c) 2019 Sebastian Gniazdowski
setopt localoptions extendedglob warncreateglobal \
typesetsilent noshortloops rcquotes noautopushd
local curcontext="$curcontext" ret=1
local -a opts
opts=(
{-h,--help}'[show the help text and exit]'
{-V,--version}'[show version and exit]'
'--dump[dump variables to stdout]'
'--dump-defaults[dump default values of variables]'
'--print[print the expanded value of a variable]'
'--known-vars[print all variable names known to --print]'
'--print-all-eapis[print all EAPI used in some version]'
'--print-all-useflags[print all IUSE/REQUIRED_USE used in some version]'
'--print-all-keywords[print all KEYWORDS used in some version]'
'--print-all-slots[print all SLOT strings used in some version]'
'--print-all-licenses[print all LICENSE strings used in some package]'
'--print-all-depends[print all words occurring in some {,R,P}DEPEND]'
'--print-world-sets[print the world sets]'
'--print-profile-paths[all paths of current profile]'
'--256[print all ansi color palettes]'
'--256d[print ansi color palettes for foreground (dark)]'
'--256d0[print ansi color palette dark (normal)]'
'--256d1[print ansi color palette dark (bright)]'
'--256l[print ansi color palettes for foreground (light)]'
'--256l0[print ansi color palette light (normal)]'
'--256l1[print ansi color palette light (bright)]'
'--256b[print ansi color palette for background]'
{-t,--test-non-matching}'[other output, print non-matching entries]'
{-Q,--quick}'[don''t read unguessable slots of installed packages]'
'--care[always read slots of installed packages]'
'--deps-installed[always read deps of installed packages]'
'--cache-file[use another cache-file instead of /var/cache/eix/portage.eix]'
{-R,--remote}'[use remote cache-file /var/cache/eix/remote.eix]'
{-Z,--remote2}'[use remote cache-file /var/cache/eix/remote2.eix]'
{-q,--quiet}'[no output. Typically combined with -0]'
'--nowarn[suppress warnings about wrong portage config]'
'--ansi[reset the ansi 256 color palette]'
{-n,--nocolor}'[do not use ANSI color codes]'
{-F,--force-color}'[force colorful output]'
{-0,--brief}'[Print at most one package then stop. See -q]'
'--brief2[Print at most two packages then stop]'
'--xml[output results in XML format]'
{-c,--compact}'[compact search results]'
{-v,--verbose}'[verbose search results]'
{-N,--normal}'[ignores -c, -v, and DEFAULT_FORMAT]'
'--format[format string]'
{-x,--versionsort}'[(toggle) sort output by slots/versions]'
{-l,--versionlines}'[print available versions line-by-line]'
{-I,--installed}'[next expression only matches installed packages]'
{-i,--multi-installed}'[packages installed in several versions]'
{-d,--dup-packages}'[match duplicated packages]'
{-D,--dup-versions}'[match packages with duplicated versions]'
{-1,--slotted}'[match packages with a nontrivial slot]'
{-2,--slots}'[match packages with two different slots]'
{-u,--upgrade}'[match packages without best slotted version]'
'--stable[match packages with a stable version]'
'--testing[match packages with a testing or stable version]'
'--non-masked[match packages with a non-masked version]'
'--system[match @system packages]'
'--profile[match @profile packages]'
'--installed-unstable[match packages with a non-stable installed version]'
'--installed-testing[match packages with a testing installed version]'
'--installed-masked[match packages with a masked installed version]'
'--world-file[match packages of world file or @system]'
'--world-set[match packages of a world set or @system]'
'--world[match packages of @world (file, set or @system)]'
'--selected-file[match packages of world file]'
'--selected-set[match packages of a world set]'
'--selected[match packages of @selected (world file or set)]'
'--binary[match packages with *.tbz2 or *.xpak files]'
'--multi-binary[match packages with at least NR *.tbz2 or *.xpak]'
'--nonvirtual[match packages from nonvirtual overlays]'
'--virtual[match packages from virtual overlays]'
{-O,--overlay}'[match packages from overlays]'
'--in-overlay[match packages from OVERLAY]'
'--only-in-overlay[match packages only in OVERLAY]'
{-J,--installed-overlay}'[packages installed from overlays]'
'--installed-from-overlay[packages installed from OVERLAY]'
'--installed-in-some-overlay[packages with an installed version]'
'--installed-in-overlay[packages with an installed version]'
'--restrict-fetch[match packages with RESTRICT=fetch]'
'--restrict-mirror[match packages with RESTRICT=mirror]'
'--restrict-primaryuri[match packages with RESTRICT=primaryuri]'
'--restrict-binchecks[match packages with RESTRICT=binchecks]'
'--restrict-strip[match packages with RESTRICT=strip]'
'--restrict-test[match packages with RESTRICT=test]'
'--restrict-userpriv[match packages with RESTRICT=userpriv]'
'--restrict-installsources[packages with RESTRICT=installsources]'
'--restrict-bindist[match packages with RESTRICT=bindist]'
'--restrict-parallel[match packages with RESTRICT=parallel]'
'--properties-interactive[match packages with PROPERTIES=interactive]'
'--properties-live[match packages with PROPERTIES=live]'
'--properties-virtual[match packages with PROPERTIES=virtual]'
'--properties-set[match packages with PROPERTIES=set]'
{-T,--test-obsolete}'[match packages with obsolete entries in]'
'--pipe-mask[as --pipe, but input is assumed to be masks]'
{-y,--any}'[any search field can match (same as -SACsHL...)]'
{-S,--description}'[description]'
{-A,--category-name}'["category/name"]'
{-C,--category}'[category]'
{-s,--name}'[name (default)]'
{-H,--homepage}'[homepage]'
{-L,--license}'[license]'
'--deps[same as --available-deps --installed-deps]'
'--depend[same as --available-depend --installed-depend]'
'--rdepend[same as --available-rdepend --installed-rdepend]'
'--pdepend[same as --available-pdepend --installed-pdepend]'
'--bdepend[same as --available-bdepend --installed-bdepend]'
'--available-deps[same as --available-depend --available-rdepend]'
{--available-pdepend,--available-bdepend}'[]'
'--available-depend[depend (of available version; only if DEP=true)]'
'--available-rdepend[rdepend (of available version; only if DEP=true)]'
'--available-pdepend[pdepend (of available version; only if DEP=true)]'
'--available-bdepend[bdepend (of available version; only if DEP=true)]'
'--installed-deps[same as --installed-depend --installed-rdepend]'
{--installed-pdepend,--installed-bdepend}'[]'
'--installed-depend[depend (of installed version)]'
'--installed-rdepend[rdepend (of installed version)]'
'--installed-pdepend[pdepend (of installed version)]'
'--installed-bdepend[bdepend (of installed version)]'
'--set[local package set name]'
'--src-uri[SRC_URI]'
'--eapi[EAPI]'
'--installed-eapi[EAPI of installed version]'
'--slot[slot]'
'--fullslot[slot with subslot]'
'--installed-slot[slot of installed version]'
'--installed-fullslot[slot with subslot of installed version]'
{-U,--use}'[useflag (of the ebuild)]'
'--installed-with-use[enabled useflag (of installed package)]'
'--installed-without-use[useflag (of installed package)]'
{-r,--regex}'[pattern is a regexp (default)]'
{-e,--exact}'[pattern is the exact string]'
{-z,--substring}'[pattern is a substring]'
{-b,--begin}'[pattern is the beginning of the string]'
'--end[pattern is the end of the string]'
{-p,--pattern}'[pattern is a wildcards-pattern]'
{-f,--fuzzy}'[use fuzzy-search with a max. levenshtein-distance m]'
'*:EXPRESSION:'
)
_arguments -C -s $opts