Skip to main content

assess_safety_script

Function assess_safety_script 

Source
pub fn assess_safety_script(script: &str, mode: Mode) -> SafetyReport
Expand description

Assess a CLI script’s safety by heuristically classifying its commands (via classify_script) and scoring the resulting effects under mode with assess_safety. The one-call path from a real script to a SafetyReport.