Skip to main content

classify_command

Function classify_command 

Source
pub fn classify_command(cmd: &str) -> Classification
Expand description

Classify a shell command.

Implements the 5-tier classification system for maximum precision with minimal latency on non-compilation commands.

Multi-command strings (joined by &&, ||, or ;) are rejected by Tier 1 structure analysis to prevent partial interception issues.