pay-respects/rules/rm.toml

15 lines
240 B
TOML
Raw Normal View History

2023-07-31 23:42:19 +02:00
command = "rm"
[[match_err]]
2023-08-01 17:57:36 +02:00
pattern = [ "is a directory", ]
2023-07-31 23:42:19 +02:00
suggest = [
2023-08-01 20:58:24 +02:00
'''{{command}} --recursive'''
2023-07-31 23:42:19 +02:00
]
2023-08-01 00:12:55 +02:00
[[match_err]]
2023-08-01 17:57:36 +02:00
pattern = [ "no such file or directory", ]
2023-08-01 00:12:55 +02:00
suggest = [
2023-08-01 20:58:24 +02:00
'''{{command[0}} {{opt::(?:\s)-[\w]+}} {{typo[-1](file)}}'''
2023-08-01 00:12:55 +02:00
]
2023-08-01 17:57:36 +02:00