rules: added cargo

This commit is contained in:
iff 2023-08-12 23:39:49 +02:00
parent 5d66f5c1ce
commit b428a1fba3

62
rules/cargo.toml Normal file
View file

@ -0,0 +1,62 @@
command = "cargo"
[[match_err]]
pattern = [
"no such command"
]
suggest = [
'''
{{command[0]}} {{typo[1](
add,
b,
bench,
build,
c,
check,
clean,
clippy,
config,
d,
doc,
expand,
fetch,
fix,
fmt,
generate-lockfile,
git-checkout,
help,
init,
install,
lipo,
locate-project,
login,
logout,
make,
metadata,
miri,
new,
owner,
package,
pkgid,
publish,
r,
read-manifest,
remove,
report,
rm,
run,
rustc,
rustdoc,
search,
t,
test,
tree,
uninstall,
update,
vendor,
verify-project,
version,
yank
)}} {{command[2:]}}'''
]