mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Improve asp's package completion
This commit is contained in:
parent
a0b3b8ac4c
commit
573b3797a5
1 changed files with 7 additions and 3 deletions
|
@ -17,6 +17,10 @@ complete -c asp -n "not __fish_seen_subcommand_from $commands" -a show -d "Show
|
||||||
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 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
|
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,
|
# Remove pointless "packages/" or "community/" before package names
|
||||||
# but getting those is non-trivial as built packages don't carry the information anymore
|
# Don't show foreign packages for untrack, and show no packages at all for gc, help, disk-usage, list-{all,local}
|
||||||
complete -c asp -n "__fish_seen_subcommand_from $commands" -a "(__fish_print_packages)" -f
|
# This will run into the description race.
|
||||||
|
complete -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
|
||||||
|
complete -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 \
|
||||||
|
-d "Locally tracked package"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue