Skip to main content

validate_command

Function validate_command 

Source
pub fn validate_command(command: &str) -> Option<String>
Expand description

Validates a shell command before execution. Returns Some(error_message) if the command should be rejected, None if it’s safe to run.