Skip to main content

execute

Function execute 

Source
pub fn execute(rs: &RuleSet, ctx: &ExecCtx<'_>, input: &str) -> Result<String>
Expand description

Run the matching rule against input and return the filtered output. If no rule matches, the input is returned unchanged (passthrough).

Non-empty output always ends in a newline, matching the convention of shell tools like echo and grep.