mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
feat: length condition
This commit is contained in:
parent
35418e3b2b
commit
15c957e7da
3 changed files with 27 additions and 4 deletions
|
|
@ -102,9 +102,12 @@ The placeholder is evaluated as following:
|
|||
|
||||
The suggestion can have additional conditions to check. To specify the conditions, add a `#[...]` at the first line (just like derive macros in Rust). Available conditions:
|
||||
|
||||
- `executable`: Check if the argument can be found by `which`
|
||||
- `cmd_contains`: Check if the last user input contains the argument
|
||||
- `err_contains`: Check if the error of the command contains the argument
|
||||
- `executable`: Check whether the argument can be found by `which`
|
||||
- `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
|
||||
- `min_length`: Check whether the given command has at least the length of the argument
|
||||
- `max_length`: Check whether the given command has at most the length of the argument
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue