fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
9c327b19a
master
1# Completions for the archlinux package information and build tool `asp` (https://github.com/falconindy/asp) 2set -l commands checkout difflog export gc disk-usage help list-{ all, arches, local, repos} { short,} log show update untrack 3 4complete -c asp -n"not __fish_seen_subcommand_from $commands " -a checkout -d"Checkout package" -f 5complete -c asp -n"not __fish_seen_subcommand_from $commands " -a difflog -d"Show the full history of the target, with file diffs" -f 6complete -c asp -n"not __fish_seen_subcommand_from $commands " -a export -d"Put the source files in current directory" -f 7complete -c asp -n"not __fish_seen_subcommand_from $commands " -a gc -d"Collect garbage" -f 8complete -c asp -n"not __fish_seen_subcommand_from $commands " -a disk-usage -d"Report approximate disk usage" -f 9complete -c asp -n"not __fish_seen_subcommand_from $commands " -a help -d"Display help and exit" -f 10complete -c asp -n"not __fish_seen_subcommand_from $commands " -a list-all -d"List all known packages" -f 11complete -c asp -n"not __fish_seen_subcommand_from $commands " -a list-arches -d"List the architectures the targets are available for" -f 12complete -c asp -n"not __fish_seen_subcommand_from $commands " -a list-local -d"List locally tracked packages" -f 13complete -c asp -n"not __fish_seen_subcommand_from $commands " -a list-repos -d"List repos the targets exist in" -f 14complete -c asp -n"not __fish_seen_subcommand_from $commands " -a log -d"Show revision history of the target" -f 15complete -c asp -n"not __fish_seen_subcommand_from $commands " -a shortlog -d"Show condensed revision history" -f 16complete -c asp -n"not __fish_seen_subcommand_from $commands " -a show -d"Show the target's PKGBUILD" -f 17complete -c asp -n"not __fish_seen_subcommand_from $commands " -a update -d"Update given targets" -f 18complete -c asp -n"not __fish_seen_subcommand_from $commands " -a untrack -d"Remove target from local repository" -f 19 20# Remove pointless "packages/" or "community/" before package names 21# Don't show foreign packages for untrack, and show no packages at all for gc, help, disk-usage, list-{all,local} 22# This will run into the description race. 23complete -c asp -n"__fish_seen_subcommand_from checkout {diff,short,}log export list-{arches,repos} show update" -a"(asp list-all | string replace -r '.*/' '')" -f 24complete -c asp -n"__fish_seen_subcommand_from checkout {diff,short,}log export list-{arches,repos} show update untrack" -a"(asp list-local | string replace -r '.*/' '')" -f\ 25 -d"Locally tracked package"