mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
Update cargo
completions to use dynamic --example
options
[ci skip]
This commit is contained in:
parent
c6f85238b9
commit
8f4797a38b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue