chore: rearrange directories

This commit is contained in:
iff 2024-12-08 16:52:53 +01:00
parent d5fb7462e0
commit 4c9aac45a8
46 changed files with 11 additions and 18 deletions

22
core/rules/cp.toml Normal file
View 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:]}} '''
]