Skip to main content

split_by_operators

Function split_by_operators 

Source
pub fn split_by_operators(cmd: &str) -> Vec<(String, Option<String>)>
Expand description

Explicit credential/private-key path segments form a narrow deterministic floor. Open-ended command danger is assessed semantically elsewhere. Split a command string by shell operators while respecting quotes. Returns (segment, operator_after) pairs.