2012-10-02 21:22:40 +00:00
|
|
|
complete -c cower -f -s b -l 'brief' -d 'Show output in a more script friendly format'
|
|
|
|
complete -c cower -f -s d -l 'download' -d 'Download [twice to fetch dependencies]'
|
|
|
|
complete -c cower -f -s i -l 'info' -d 'Show info for target [twice for more details]'
|
|
|
|
complete -c cower -f -s m -l 'msearch' -d 'Search for packages by maintainer'
|
|
|
|
complete -c cower -f -s s -l 'search' -d 'Search for packages by name'
|
|
|
|
complete -c cower -f -s u -l 'update' -d 'Check AUR packages for updates'
|
|
|
|
complete -c cower -f -s c -l 'color' -xa 'always auto never' -d 'Use colored output'
|
|
|
|
complete -c cower -f -s v -l 'debug' -d 'Show debug output'
|
|
|
|
complete -c cower -f -s f -l 'force' -d 'Overwrite existing files when downloading'
|
|
|
|
complete -c cower -f -l 'format' -d 'Print formatted'
|
|
|
|
complete -c cower -f -s h -l 'help' -d 'Display help and quit'
|
|
|
|
complete -c cower -f -l 'ignore' -xa "(pacman -Qq)" -d 'Ignore a package upgrade'
|
2015-09-25 11:22:09 +00:00
|
|
|
complete -c cower -f -l 'ignorerepo' -xa "(__fish_print_pacman_repos)" -d 'Ignore a binary repo when checking for updates'
|
2012-10-02 21:22:40 +00:00
|
|
|
complete -c cower -f -l 'listdelim' -d 'Specify a delimiter for list formatters'
|
|
|
|
complete -c cower -f -s q -l 'quiet' -d 'Output less'
|
|
|
|
complete -c cower -f -s t -l 'target' -d 'Download targets to DIR'
|
|
|
|
complete -c cower -f -l 'threads' -d 'Limit the number of threads created [10]'
|
|
|
|
complete -c cower -f -l 'timeout' -d 'Curl timeout in seconds'
|
|
|
|
complete -c cower -f -s v -l 'verbose' -d 'Output more'
|
|
|
|
|
|
|
|
# Complete with AUR packages:
|
2015-08-06 10:56:57 +00:00
|
|
|
# If the search string is too short, cower prints an annoying message to stderr - ignore that
|
2016-02-03 22:23:59 +00:00
|
|
|
complete -c cower -f -n 'not string match -q -- "-*" (commandline --current-token)' -a '(cower --format="%n\t%d\n" --search (commandline --current-token) ^/dev/null)'
|