mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 08:58:01 +00:00
d591cebf44
This is used in at least 4 places, all of which have a bug in that they print "options" as a valid repo. It seems better to fix it once, especially given that there are tons of AUR helpers and pacman wrappers, all of which might need this info.
23 lines
1.9 KiB
Fish
23 lines
1.9 KiB
Fish
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'
|
|
complete -c cower -f -l 'ignorerepo' -xa "(__fish_print_pacman_repos)" -d 'Ignore a binary repo when checking for updates'
|
|
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:
|
|
# If the search string is too short, cower prints an annoying message to stderr - ignore that
|
|
complete -c cower -f -n 'not expr -- (commandline --current-token) : "^\-.*" > /dev/null' -a '(cower --format="%n\t%d\n" --search (commandline --current-token) ^/dev/null)'
|