Skip to main content

get_destructive_command_warning

Function get_destructive_command_warning 

Source
pub fn get_destructive_command_warning(command: &str) -> Option<&'static str>
Expand description

Checks if a PowerShell command matches known destructive patterns. Returns a human-readable warning string, or None if no destructive pattern is detected.