From 2f762e2da111444a1516bb1dd1099a8be386d4a8 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Tue, 6 May 2025 18:58:23 +0200 Subject: [PATCH] completions/cargo: re-use __fish_cargo Technically this is in the autogenerated part, but I'm not sure how I can re-generate it with today's cargo. --- share/completions/cargo.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/cargo.fish b/share/completions/cargo.fish index b55579ee6..df387ff86 100644 --- a/share/completions/cargo.fish +++ b/share/completions/cargo.fish @@ -723,7 +723,7 @@ complete -c cargo -n "__fish_seen_subcommand_from tree" -s v -l verbose -d 'Use complete -c cargo -n "__fish_seen_subcommand_from tree" -l frozen -d 'Require Cargo.lock and cache are up to date' complete -c cargo -n "__fish_seen_subcommand_from tree" -l locked -d 'Require Cargo.lock is up to date' complete -c cargo -n "__fish_seen_subcommand_from tree" -l offline -d 'Run without accessing the network' -complete -c cargo -n "__fish_seen_subcommand_from uninstall" -fa '(cargo install --list | string replace -rf "(\S+) (.*):" \'$1\t$2\')' +complete -c cargo -n "__fish_seen_subcommand_from uninstall" -fa '(__fish_cargo install --list | string replace -rf "(\S+) (.*):" \'$1\t$2\')' complete -c cargo -n "__fish_seen_subcommand_from uninstall" -s p -l package -d 'Package to uninstall' complete -c cargo -n "__fish_seen_subcommand_from uninstall" -l bin -d 'Only uninstall the binary NAME' complete -c cargo -n "__fish_seen_subcommand_from uninstall" -l root -d 'Directory to uninstall packages from'