mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 15:45:11 +01:00
fix: outdated syntax in README
This commit is contained in:
parent
26384f4ffe
commit
a9cea6edf1
2 changed files with 7 additions and 2 deletions
|
|
@ -7,3 +7,6 @@ edition = "2021"
|
|||
colored = "2.0"
|
||||
rule_parser = { path = "rule_parser" }
|
||||
regex-lite = "0.1"
|
||||
|
||||
[profile.release]
|
||||
strip = true
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ pattern = [
|
|||
"pattern 2",
|
||||
]
|
||||
# this will change the first argument to `fix`, while keeping the rest intact
|
||||
suggest = "{{command[0]}} fix {{command[2:]}}"
|
||||
suggest = { "{{command[0]}} fix {{command[2:]}}" }
|
||||
|
||||
[[match_err]]
|
||||
pattern = [
|
||||
|
|
@ -73,9 +73,11 @@ pattern = [
|
|||
# this will add a `sudo` before the command if:
|
||||
# - the `sudo` is found by `which`
|
||||
# - the last command does not contain `sudo`
|
||||
suggest = '''
|
||||
suggest = [
|
||||
'''
|
||||
#[executable(sudo), !cmd_contains(sudo)]
|
||||
sudo {{command}}'''
|
||||
]
|
||||
```
|
||||
|
||||
The placeholder is evaluated as following:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue