probe_version

Function probe_version 

Source
fn probe_version(cmd: &str, version_arg: &Option<String>) -> Option<String>
Expand description

Run cmd --version-arg and extract the first version-looking token. Returns Some(version_string) on success, None if the command fails or the output contains no recognisable version token.