mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-24 05:41:14 -03:00
Update cargo completions to use dynamic --example options
[ci skip]
This commit is contained in:
@@ -35,7 +35,7 @@ end
|
||||
|
||||
for x in bench build run rustc test
|
||||
complete -c cargo -x -n "__fish_seen_subcommand_from $x" -l bin -d 'Only the specified binary'
|
||||
complete -c cargo -x -n "__fish_seen_subcommand_from $x" -l example -d 'Only the specified example'
|
||||
complete -c cargo -x -n "__fish_seen_subcommand_from $x" -l example -a "(cargo run --example 2>&1 | string replace -rf '^\s+' '')"
|
||||
end
|
||||
|
||||
for x in build run rustc test
|
||||
|
||||
Reference in New Issue
Block a user