mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 22:40:09 +01:00
22 lines
337 B
TOML
22 lines
337 B
TOML
command = "cp"
|
|
|
|
[[match_err]]
|
|
pattern = [
|
|
"-r not specified",
|
|
]
|
|
suggest = [
|
|
'''
|
|
{{command[0]}} -r {{command[1:]}} '''
|
|
]
|
|
|
|
[[match_err]]
|
|
pattern = [
|
|
"cannot create",
|
|
]
|
|
suggest = [
|
|
'''
|
|
#[err_contains(no such file or directory)]
|
|
mkdir -p {{cmd::(?m)\s(\S+[\\\/])\S*\s*$}} && \
|
|
{{command[0]}} {{opt::(?:\s)(-[\w]+)}} {{command[1:]}} '''
|
|
]
|
|
|