mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 07:35:10 +01:00
docs: update
This commit is contained in:
parent
a122b8c984
commit
e44738e37e
2 changed files with 7 additions and 6 deletions
4
rules.md
4
rules.md
|
|
@ -23,7 +23,7 @@ command = "world"
|
|||
# you can add as many `[[match_err]]` section as you want
|
||||
[[match_err]]
|
||||
# the suggestion of this section will be used for the following patterns of the error output
|
||||
# note that the error is formatted to lowercase
|
||||
# patterns should be in lowercase
|
||||
pattern = [
|
||||
"pattern 1",
|
||||
"pattern 2"
|
||||
|
|
@ -61,7 +61,7 @@ The placeholder is evaluated as following:
|
|||
|
||||
Suggestions can have additional conditions to check. To specify conditions, add a `#[...]` at the first line (just like derive macros in Rust). Available conditions:
|
||||
|
||||
- `executable`: Check whether the argument can be found as executable (`command -v arg`).
|
||||
- `executable`: Check whether the argument can be found in path.
|
||||
- `cmd_contains`: Check whether the last user input contains the argument.
|
||||
- `err_contains`: Check whether the error of the command contains the argument.
|
||||
- `length`: Check whether the given command has the length of the argument.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue