Skip to main content

classify_simple_command

Function classify_simple_command 

Source
pub fn classify_simple_command(
    cmd: &SimpleCommand,
    cwd: Option<&Path>,
) -> CommandSafety
Expand description

Classify a single simple command as safe or needing review.

cwd is optional; if provided, static output redirects are validated against it.