Skip to main content

assert_single_powershell_statement

Function assert_single_powershell_statement 

Source
pub fn assert_single_powershell_statement(command: &str) -> Result<()>
Expand description

Reject PowerShell input that chains statements: ;, newlines, or the &&/|| chain operators outside quotes. A single pipeline is allowed.