mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
Add completions for asp
A package information and build tool for archlinux, replacement for the ageing "abs".
This commit is contained in:
parent
bd482898d4
commit
6027eae1a1
1 changed files with 22 additions and 0 deletions
22
share/completions/asp.fish
Normal file
22
share/completions/asp.fish
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Completions for the archlinux package information and build tool `asp` (https://github.com/falconindy/asp)
|
||||
set -l commands checkout difflog export gc disk-usage help list-{all,arches,local,repos} {short,}log show update untrack
|
||||
|
||||
complete -c asp -n "not __fish_seen_subcommand_from $commands" -a checkout -d "Checkout package" -f
|
||||
complete -c asp -n "not __fish_seen_subcommand_from $commands" -a difflog -d "Show the full history of the target, with file diffs" -f
|
||||
complete -c asp -n "not __fish_seen_subcommand_from $commands" -a export -d "Put the source files in current directory" -f
|
||||
complete -c asp -n "not __fish_seen_subcommand_from $commands" -a gc -d "Collect garbage" -f
|
||||
complete -c asp -n "not __fish_seen_subcommand_from $commands" -a disk-usage -d "Report approximate disk usage" -f
|
||||
complete -c asp -n "not __fish_seen_subcommand_from $commands" -a help -d "Display help and exit" -f
|
||||
complete -c asp -n "not __fish_seen_subcommand_from $commands" -a list-all -d "List all known packages" -f
|
||||
complete -c asp -n "not __fish_seen_subcommand_from $commands" -a list-arches -d "List the architectures the targets are available for" -f
|
||||
complete -c asp -n "not __fish_seen_subcommand_from $commands" -a list-local -d "List locally tracked packages" -f
|
||||
complete -c asp -n "not __fish_seen_subcommand_from $commands" -a list-repos -d "List repos the targets exist in" -f
|
||||
complete -c asp -n "not __fish_seen_subcommand_from $commands" -a log -d "Show revision history of the target" -f
|
||||
complete -c asp -n "not __fish_seen_subcommand_from $commands" -a shortlog -d "Show condensed revision history" -f
|
||||
complete -c asp -n "not __fish_seen_subcommand_from $commands" -a show -d "Show the target's PKGBUILD" -f
|
||||
complete -c asp -n "not __fish_seen_subcommand_from $commands" -a update -d "Update given targets" -f
|
||||
complete -c asp -n "not __fish_seen_subcommand_from $commands" -a untrack -d "Remove target from local repository" -f
|
||||
|
||||
# This isn't perfect as we need a pkgbase, not a pkgname,
|
||||
# but getting those is non-trivial as built packages don't carry the information anymore
|
||||
complete -c asp -n "__fish_seen_subcommand_from $commands" -a "(__fish_print_packages)" -f
|
Loading…
Reference in a new issue