Skip to main content

parse_command

Function parse_command 

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

Split a hook command into (program, args) using shell-words (no shell is involved). Errors are the user-facing strings the test-run surfaces; the fire path logs them. Pure, so the parse rules are testable.