fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian Homborg__fish_print_packages: Extract the rest04d7d8902

master
1.0 KiB18 linesraw
1# Completions for xbps-pkgdb
2# Author: Allen Sobot <chilledfrogs@disroot.org>
3
4set -l progname xbps-pkgdb
5set -l modes auto manual hold unhold repolock repounlock
6
7complete -c $progname -f
8
9complete -c $progname -s a -d 'Process all registered packages, regardless of its state.'
10complete -c $progname -s C -d 'Specifies a path to the XBPS configuration directory.' -xa "(__fish_complete_directories)"
11complete -c $progname -s d -d 'Enables extra debugging shown to stderr.'
12complete -c $progname -s h -d 'Show the help message.'
13complete -c $progname -s m -d 'Set mode of PKGNAME' -xa "$modes"
14complete -c $progname -n "__fish_seen_subcommand_from $modes" -xa "(__fish_print_xbps_packages -i)"
15complete -c $progname -s r -d 'Specifies a full path for the target root directory.' -xa "(__fish_complete_directories)"
16complete -c $progname -s u -d 'Updates the pkgdb format to the latest version making the necessary conversions.'
17complete -c $progname -s v -d 'Enables verbose messages.'
18complete -c $progname -s V -d 'Show the version information.'