Skip to main content

parse_command

Function parse_command 

Source
pub fn parse_command(cmd_str: &str) -> (String, Vec<String>)
Expand description

Parse command string into command and arguments

Splits the input string by whitespace. Does not handle quoted strings or shell escaping - for complex commands, pass them as pre-parsed arguments.