rules: better rm suggestion

This commit is contained in:
iff 2023-08-01 17:57:36 +02:00
parent 7a05ad56fc
commit 2d990b74fc

View file

@ -1,5 +1,12 @@
command = "rm"
[[match_err]]
pattern = [ "is a directory", ]
suggest = [
'''
{{command}} --recursive'''
]
[[match_err]]
pattern = [ "no such file or directory", ]
suggest = [
@ -7,9 +14,3 @@ suggest = [
{{command[0}} {{opt(-*)}} {{typo[-1](file)}}'''
]
[[match_err]]
pattern = [ "is a directory", ]
suggest = [
'''
{{command[0]}} {{opt(-*)}} --recursive {{command[1:]}}'''
]