fork/fish-shell

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

Johannes AltmanningerUse complete --keep-order with __fish_complete_suffix to prioritize files with matching suffixes4dae10691

master
1.5 KiB22 linesraw
1# Completions for xbps-rindex
2# Author: Allen Sobot <chilledfrogs@disroot.org>
3
4set -l progname xbps-rindex
5set -l modes none gzip bzip2 xz lz4 zstd
6
7complete -c $progname -f
8
9complete -c $progname -s d -d 'Enable extra debugging shown to stderr'
10complete -c $progname -l compression -d 'Set the repodata compression format (default: zstd)' -xa "$modes"
11complete -c $progname -s C -d 'Check not only for file existence but for the correct file hash while cleaning'
12complete -c $progname -s f -d 'Forcefully register package into the local repo (overwriting)'
13complete -c $progname -s h -d 'Show the help message'
14complete -c $progname -s V -d 'Show the version information'
15complete -c $progname -l signedby -d 'Name and email of person signing the repository'
16complete -c $progname -l privkey -d 'Path to the private RSA key to sign the repository. Defaults to ~/.ssh/id_rsa' -F
17
18complete -c $progname -s a -d 'Register the binary package into the local repository' -k -xa "(__fish_complete_suffix .xbps)"
19complete -c $progname -s c -d 'Remove obsolete entries found in the local repository' -xa "(__fish_complete_directories)"
20complete -c $progname -s r -d 'Remove obsolete and currently unregistered packages from the local repository' -xa "(__fish_complete_directories)"
21complete -c $progname -s s -d 'Initialize a signed repository with your specified RSA key' -xa "(__fish_complete_directories)"
22complete -c $progname -s S -d 'Sign a binary package archive with your specified RSA key' -k -xa "(__fish_complete_suffix .xbps)"