pay-respects/rules/cargo.toml

77 lines
1 KiB
TOML
Raw Normal View History

2023-08-12 23:39:49 +02:00
command = "cargo"
[[match_err]]
pattern = [
2024-11-19 03:18:54 +01:00
"no such command"
2023-08-12 23:39:49 +02:00
]
suggest = [
'''
2024-11-19 03:18:54 +01:00
#[err_contains(did you mean)]
2025-04-22 16:18:51 +02:00
{{command[0]}} {{err::(?:did you mean `)(.*)(?:`\?)}} {{command[2:]}} ''',
'''
#[err_contains(a command with a similar name exists)]
{{command[0]}} {{err::(?:a command with a similar name exists: `)(\S+)(?:`)}} {{command[2:]}} ''',
'''
#[!err_contains(did you mean),
!err_contains(a command with a similar name exists)]
{{command[0]}} {{typo[1](
add,
bench,
build,
check,
clean,
clippy,
config,
deb,
doc,
expand,
fetch,
fix,
fmt,
generate-lockfil,
generate-rpm,
git-checkout,
help,
info,
init,
install,
lipo,
locate-project,
login,
logout,
make,
metadata,
miri,
new,
owner,
package,
pkgid,
publish,
read-manifest,
remove,
report,
rm,
run,
rustc,
rustdoc,
search,
test,
tree,
uninstall,
update,
vendor,
verify-project,
version,
yank
)}} {{command[2:]}} ''',
2023-08-12 23:39:49 +02:00
]
2025-04-10 17:08:29 +02:00
[[match_err]]
pattern = [
"using `cargo install` to install the binaries from the package in current working directory is no longer supported",
]
suggest = [
'''
{{command}} --path .'''
]