diff --git a/Cargo.toml b/Cargo.toml index eb2c845..b26c390 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,6 @@ edition = "2021" colored = "2.0" rule_parser = { path = "rule_parser" } regex-lite = "0.1" + +[profile.release] +strip = true diff --git a/README.md b/README.md index 8fe79d1..3878667 100644 --- a/README.md +++ b/README.md @@ -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: