Skip to main content

parse_version

Function parse_version 

Source
pub fn parse_version(raw_stdout: &str) -> AgentVersion
Expand description

Extracts a best-effort version from --version output: the first MAJOR.MINOR[.PATCH]-shaped token on the first line. No semver crate is used (matching repo convention); the trimmed raw line is preserved too.