Skip to main content

classify_bash

Function classify_bash 

Source
pub fn classify_bash(
    command: &str,
    allowed_roots: &[String],
) -> Option<&'static str>
Expand description

If a Bash command matches a mutation pattern and is not scoped to one of allowed_roots, return the human reason; otherwise None. A command is treated as scoped when it textually references an allowed root.