pay-respects/rules/rm.toml
2023-08-01 19:35:22 +02:00

18 lines
244 B
TOML

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