Skip to main content

explain_with_coverage

Function explain_with_coverage 

Source
pub fn explain_with_coverage(input: &str, patterns: &Matcher) -> Explanation
Expand description

Explain with the user’s allowlist patterns overlaid, so a command the user has allowed isn’t reported as not-auto-approved. This mirrors the hook’s own coverage check (main.rs): a segment counts as allowed when it is built-in safe or every command in it is covered by the user’s patterns.