complete-eik-and-friends.dpatch

Completions for all tools which come with eix.
(http://dev.croup.de/proj/eix)

darcs-hash:20061110155925-a923b-fd06120f7ea5f65cb752fe437bfccb6f16c87b45.gz
This commit is contained in:
tassilo 2006-11-11 01:59:25 +10:00
parent 08787c7674
commit fb62a35921
4 changed files with 123 additions and 0 deletions

View file

@ -0,0 +1,25 @@
# Completions for the eix tool's eix-sync command
# http://dev.croup.de/proj/eix and http://sourceforge.net/projects/eix/
# Author: Tassilo Horn <tassilo@member.fsf.org>
##########
# EIX-SYNC
complete -c eix-sync -s i -d "Ignore all previous options"
complete -c eix-sync -s d -d "Only show differences to the previously saved database and exit"
complete -c eix-sync -s s -xua '(__fish_print_users)@(__fish_print_hostnames):' -d "Sync via rsync from the given SERVER"
complete -c eix-sync -s c -xua '(__fish_print_users)@(__fish_print_hostnames):' -d "Sync via rsync *to* the given CLIENT"
complete -c eix-sync -s U -d "Do not touch the database and omit the hooks after update-eix. (Implies -R)"
complete -c eix-sync -s u -d "Update database only and show differences"
complete -c eix-sync -s g -d "Do not call gensync (and the !commands in /etc/eix-sync.conf)"
complete -c eix-sync -s @ -d "Do not execute the hooks of /etc/eix-sync.conf"
complete -c eix-sync -s S -d "Do not execute the hooks after emerge --sync (@@ entries)"
complete -c eix-sync -s m -d "Run emerge --metadata instead of emerge --sync"
complete -c eix-sync -s t -d "Use temporary file to save the current database"
complete -c eix-sync -s v -d "Don't suppress output of update-eix and emerge"
complete -c eix-sync -s q -d "Be quiet (close stdout)"
complete -c eix-sync -s w -d "Run emerge-webrsync instead of emerge --sync"
complete -c eix-sync -s r -d "Really recreate the dep-cache (rm -rf /var/cache/edb/dep/*) (default)"
complete -c eix-sync -s R -d "Do not really recreate the dep-cache"
complete -c eix-sync -s h -d "Show a short help text and exit"
##########

View file

@ -0,0 +1,64 @@
# Completions for the eix tool
# http://dev.croup.de/proj/eix and http://sourceforge.net/projects/eix/
# Author: Tassilo Horn <tassilo@member.fsf.org>
##########
# EIX
#####
# Global options
###
# exclusive options
complete -c eix -s h -l help -d "Show a help screen and exit"
complete -c eix -s V -l version -d "Show version and exit"
complete -c eix -l dump -d "Dump variables to stdout"
complete -c eix -l dump-defaults -d "Dump default values of variables to stdout"
###
# special options
complete -c eix -s t -l test-non-matching -d "Print non-matching entries first"
complete -c eix -s Q -l quick -d "Don't read unguessable slots of installed packages (toggle)"
complete -c eix -l care -d "Always read slots of installed packages"
###
# ootput options
complete -c eix -s q -l quiet -d "(no) output (toggle)"
complete -c eix -s n -l nocolor -d "Don't use ANSI color codes"
complete -c eix -s F -l force-color -d "Force colorful output"
complete -c eix -s c -l compact -d "Compact search results (toggle)"
complete -c eix -s v -l verbose -d "Verbose search results (toggle)"
complete -c eix -s x -l versionsort -d "Sort output by slots/versions (toggle)"
complete -c eix -s l -l versionlines -d "Print available versions line-by-line (toggle)"
complete -c eix -l format -d "Format string for normal output"
complete -c eix -l format-compact -d "Format string for compact output"
complete -c eix -l format-verbose -d "Format string for verbose output"
#####
# Local options
###
# Miscellaneous
complete -c eix -s I -l installed -d "Next expression only matches installed packages"
complete -c eix -s i -l multi-installed -d "Match packages installed in several versions"
complete -c eix -s d -l dup-packages -d "Match duplicated packages"
complete -c eix -s D -l dup-versions -d "Match packages with duplicated versions"
complete -c eix -s 1 -l slotted -d "Match packages with a nontrivial slot"
complete -c eix -s 2 -l slots -d "Match packages with two different slots"
complete -c eix -s u -l update -d "Match packages without best slotted version"
complete -c eix -s o -l overlay -d "Match packages from overlays"
complete -c eix -s T -l test-obsolete -d "Match packages with obsolete entries"
complete -c eix -s '!' -l not -d "Invert the expression (toggle)"
complete -c eix -s '|' -l pipe -d "Use input from pipe of emerge -pv"
###
# Search Fields
complete -c eix -s S -l description -d "Search the description field"
complete -c eix -s A -l category-name -d "Search the category and name fields"
complete -c eix -s C -l category -d "Search the category field"
complete -c eix -s s -l name -d "Search the name field (default)"
complete -c eix -s H -l homepage -d "Search the homepage field"
complete -c eix -s L -l license -d "Search the license field"
complete -c eix -s P -l provides -d "Search the provides field"
###
# Type of Pattern
complete -c eix -s r -l regex -d "Pattern is a regexp (default)"
complete -c eix -s e -l exact -d "Pattern is the exact string"
complete -c eix -s p -l pattern -d "Pattern is a wildcards-pattern"
complete -c eix -s f -l fuzzy -d "Use fuzzy-search with the given max. levenshtein-distance (default: 2)"
#####
##########

View file

@ -0,0 +1,17 @@
# Completions for the eix tool's update-eix-remote command
# http://dev.croup.de/proj/eix and http://sourceforge.net/projects/eix/
# Author: Tassilo Horn <tassilo@member.fsf.org>
##########
# UPDATE-EIX-REMOTE
#####
# Options
complete -c update-eix-remote -s q -d "Be quiet"
complete -c update-eix-remote -s v -d "Be verbose (default)"
complete -c update-eix-remote -s u -xua '(__fish_print_users)' -d "Call wget as the given USER"
complete -c update-eix-remote -s o -d "Use the given PATH as $OVERLAYPARENT"
#####
# Subcommands
complete -c update-eix-remote -xa 'update\t"'(_ "Fetch the eix-caches of some layman overlays into a temporary file resp. into FILE and add them to the eix database")'" fetch\t"'(_ "Only fetch the overlays into FILE")'" add\t"'(_ "Only add the overlays from FILE to the eix database")'" remove\t"'(_ "Remove all temporarily added virtual overlays from the eix database")'"'
##########

View file

@ -0,0 +1,17 @@
# Completions for the eix tool's update-eix command
# http://dev.croup.de/proj/eix and http://sourceforge.net/projects/eix/
# Author: Tassilo Horn <tassilo@member.fsf.org>
##########
# UPDATE-EIX
complete -c update-eix -s h -l help -d "Show a short help screen"
complete -c update-eix -s V -l version -d "Show version string"
complete -c update-eix -l dump -d "Show eixrc-variables"
complete -c update-eix -l dump-defaults -d "Show default eixrc-variables"
complete -c update-eix -s q -l quiet -d "Produce no output"
complete -c update-eix -s o -l output -d "Output to the given file"
complete -c update-eix -s x -l exclude-overlay -d "Exclude the given overlay from the update-process"
complete -c update-eix -s a -l add-overlay -d "Add the given overlay to the update-process"
complete -c update-eix -s m -l override-method -d "Override cache method for a specified overlay"
##########