use crate::bash::parse_shell_lc_plain_commands; use std::path::Path; #[cfg(windows)] #[path = "windows_dangerous_commands.rs"] mod windows_dangerous_commands; pub fn command_might_be_dangerous(command: &[String]) -> bool { #[cfg(windows)] { if windows_dangerous_commands::is_dangerous_command_windows(command) { return true; } } if is_dangerous_to_call_with_exec(command) { return true; } // Support `bash -lc "