format: uniform rule style

This commit is contained in:
iff 2023-08-04 02:42:16 +02:00
parent 0646317abc
commit 9be1d040c4
5 changed files with 21 additions and 9 deletions

View file

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