mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
chore: move rules to root
This commit is contained in:
parent
79264e1a4e
commit
0c7277f910
18 changed files with 2 additions and 2 deletions
22
rules/cp.toml
Normal file
22
rules/cp.toml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
command = "cp"
|
||||
|
||||
[[match_err]]
|
||||
pattern = [
|
||||
"-r not specified",
|
||||
]
|
||||
suggest = [
|
||||
'''
|
||||
{{command[0]}} -r {{command[1:]}} '''
|
||||
]
|
||||
|
||||
[[match_err]]
|
||||
pattern = [
|
||||
"cannot create directory",
|
||||
]
|
||||
suggest = [
|
||||
'''
|
||||
#[err_contains(no such file or directory)]
|
||||
mkdir -p {{cmd::(?m)\s(\S+[\\\/])\S*\s*$}} && \
|
||||
{{command[0]}} {{opt::\s(-[\w]+)}} {{command[1:]}} '''
|
||||
]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue