From 0b3e9609f1387c2b41b519d96492e5bdee2815c3 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Fri, 12 Jan 2024 11:14:45 -0800 Subject: [PATCH] completions/fastboot: declare -s as taking an argument, add argument completions --- share/completions/fastboot.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/fastboot.fish b/share/completions/fastboot.fish index 02e1f1241..a9f4ee401 100644 --- a/share/completions/fastboot.fish +++ b/share/completions/fastboot.fish @@ -26,7 +26,7 @@ complete -c fastboot -s v -l verbose -d 'Verbose output' complete -c fastboot -l version -d 'Display version' complete -n "not __fish_seen_subcommand_from $commands" -c fastboot -s w -d 'Wipe userdata' -complete -n "not __fish_seen_subcommand_from $commands" -c fastboot -s s -d 'Specify a device' +complete -n "not __fish_seen_subcommand_from $commands" -c fastboot -s s -x -a "(fastboot devices)" -d 'Specify a device' complete -n "not __fish_seen_subcommand_from $commands" -c fastboot -s S -d 'Break into sparse files no larger than SIZE' complete -n "not __fish_seen_subcommand_from $commands" -c fastboot -l slot -d 'Use SLOT; \'all\' for both slots, \'other\' for non-current slot (default: current active slot)' -xa "all other a b" complete -n "not __fish_seen_subcommand_from $commands" -c fastboot -l set-active -d 'Sets the active slot before rebooting' -xa "a b"