Skip to main content

parse_ssh_command

Function parse_ssh_command 

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

Parse an SSH command string into command and arguments, handling quotes and spaces. Similar to how rsync and other tools parse the -e option.