From 1f9226aaa46352a3c6477bbe6820a985ef1b3107 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 (cherry picked from commit 0b3e9609f1387c2b41b519d96492e5bdee2815c3) --- 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 3c6c01039..cb7f0ed8f 100644 --- a/share/completions/fastboot.fish +++ b/share/completions/fastboot.fish @@ -20,7 +20,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"