fork/fish-shell

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

Fabian Homborg__fish_print_packages: Extract the rest04d7d8902

master
1.5 KiB20 linesraw
1# Completions for xbps-dgraph
2# Author: Allen Sobot <chilledfrogs@disroot.org>
3
4set -l progname xbps-dgraph
5
6complete -c $progname -f
7complete -c $progname -a "(__fish_print_xbps_packages -i)"
8complete -c $progname -n "__fish_contains_opt -s R" -a "(__fish_print_xbps_packages)"
9
10complete -c $progname -s C -d 'Specifies a path to the XBPS configuration directory.' -xa "(__fish_complete_directories)"
11complete -c $progname -s c -d 'Specifies a path to the graph configuration file.' -F
12complete -c $progname -s d -d 'Enables extra debugging shown to stderr.'
13complete -c $progname -s h -d 'Show the help message.'
14complete -c $progname -s M -d 'For remote repositories, the data is fetched and stored in memory.'
15complete -c $progname -s R -d 'Enable repository mode.'
16complete -c $progname -s r -d 'Specifies a full path for the target root directory.' -xa "(__fish_complete_directories)"
17complete -c $progname -s V -d 'Show the version information.'
18complete -c $progname -s g -n "not __fish_contains_opt -s f" -n "not __fish_contains_opt -s m" -d 'Generates a graph configuration file in the current working directory.'
19complete -c $progname -s f -n "not __fish_contains_opt -s m" -n "not __fish_contains_opt -s g" -d 'Generates a full dependency graph of the target package.'
20complete -c $progname -s m -n "not __fish_contains_opt -s f" -n "not __fish_contains_opt -s g" -d 'Generates a metadata graph of the target package.' # TODO: kinda fix this, can't exactly figure out how to make these last 3 modes mutually exclusive