aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/cower.fish
blob: 83918d9cbfc3c5471d1ba90525b1a7118d053700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 string match -q -- "-*" (commandline --current-token)' -a '(cower --format="%n\t%d\n" --search (commandline --current-token) ^/dev/null)'