fish-shell/share/completions/xbps-install.fish
Johannes Altmanninger 9c327b19a6 Fix extra or missing newlines at end of file in our fish scripts
New fish_indent does that too, so this will make any future reformatting
diffs smaller.

Done using either of:

	perl -pi -e 'undef $/; s/\n*$/\n/' share/**.fish
	kak -n -f '<a-/>\n*<ret>d' share/**.fish
2020-08-09 23:53:46 +02:00

30 lines
2.1 KiB
Fish

# Completions for xbps-install
# Author: Allen Sobot <chilledfrogs@disroot.org>
set -l progname xbps-install
set -l listall "(__fish_print_packages)"
complete -c $progname -f
complete -c $progname -a "$listall"
complete -c $progname -s A -d 'Enables automatic installation mode, i. e. treat as orphan unless dependency of already installed package.'
complete -c $progname -s C -d 'Specifies a path to the XBPS configuration directory.' -xa "(__fish_complete_directories)"
complete -c $progname -s c -d 'Specifies a path to the cache directory, where binary packages are stored.' -xa "(__fish_complete_directories)"
complete -c $progname -s d -d 'Enables extra debugging shown to stderr.'
complete -c $progname -s D -d 'Only download packages to the cache, do not do any other installation steps.'
complete -c $progname -s f -d 'Force downgrade/reinstall package (pass option twice to reinstall config files as well).'
complete -c $progname -s h -d 'Show the help message.'
complete -c $progname -s I -d 'Ignore detected file conflicts in a transaction.'
complete -c $progname -s i -d 'Ignore repositories defined in configuration files.'
complete -c $progname -s M -d 'For remote repositories, the data is fetched and stored in memory.'
complete -c $progname -s n -d 'Dry-run mode. Show what actions would be done but don\'t do anything.'
complete -c $progname -s R -d 'Enable repository mode.'
complete -c $progname -l repository -d 'Appends the specified repository to the top of the list.'
complete -c $progname -s r -d 'Specifies a full path for the target root directory.' -xa "(__fish_complete_directories)"
complete -c $progname -s S -d 'Synchronize remote repository index files.'
complete -c $progname -s U -d 'If set, packages to be installed or upgraded in the transaction won\'t be configured.'
complete -c $progname -s u -d 'Performs a full system upgrade (except for packages on hold).'
complete -c $progname -s v -d 'Enables verbose messages.'
complete -c $progname -s y -d 'Assume yes to all questions and avoid interactive questions.'
complete -c $progname -s V -d 'Show the version information.'