Skip to main content

split_command

Function split_command 

Source
pub fn split_command(text: &str) -> Option<Vec<String>>
Expand description

A one-line command as words: whitespace separates, "..." and '...' group (quotes removed). A backslash is an ordinary character, so Windows paths stay whole. A leading $ or > prompt is dropped. None for empty text or an unclosed quote.