pay-respects/rules/cp.toml

23 lines
335 B
TOML
Raw Normal View History

2024-11-16 17:06:07 +01:00
command = "cp"
[[match_err]]
pattern = [
"-r not specified",
]
suggest = [
'''
{{command[0]}} -r {{command[1:]}} '''
]
2024-11-21 15:23:07 +01:00
[[match_err]]
pattern = [
2025-01-06 16:10:00 +01:00
"cannot create",
2024-11-21 15:23:07 +01:00
]
suggest = [
'''
#[err_contains(no such file or directory)]
2025-04-05 01:15:41 +02:00
mkdir -p {{cmd::(?m)\s(\S+[\\\/])\S*\s*$}} &&
2025-01-07 01:16:54 +01:00
{{command[0]}} {{opt::(?:\s)(-[\w]+)}} {{command[1:]}} '''
2024-11-21 15:23:07 +01:00
]