rules: add touch; update formats

This commit is contained in:
iff 2023-08-07 18:35:07 +02:00
parent 2f3ba438ea
commit e214cf24ba
8 changed files with 26 additions and 30 deletions

View file

@ -1,18 +1,16 @@
command = "rm"
[[match_err]]
pattern = [ "is a directory", ]
pattern = [ "is a directory" ]
suggest = [
'''
{{command}} --recursive
'''
{{command}} --recursive '''
]
[[match_err]]
pattern = [ "no such file or directory", ]
pattern = [ "no such file or directory" ]
suggest = [
'''
{{command[0}} {{opt::(?:\s)-[\w]+}} {{typo[-1](file)}}
'''
{{command[0}} {{opt::(?:\s)-[\w]+}} {{typo[-1](file)}} '''
]