MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / parse_version_output

Function parse_version_output

src/upgrade.rs:764–767  ·  view source on GitHub ↗

Extracts the version from `tracedecay --version` output (e.g. `tracedecay 5.0.1` → `5.0.1`).

(output: &str)

Source from the content-addressed store, hash-verified

762/// Extracts the version from `tracedecay --version` output
763/// (e.g. `tracedecay 5.0.1` → `5.0.1`).
764fn parse_version_output(output: &str) -> Option<String> {
765 let version = output.split_whitespace().last()?;
766 Some(version.trim_start_matches('v').to_string())
767}
768
769/// Asks the binary at `path` for its version, killing it after a short
770/// deadline so a wedged binary cannot hang the upgrade. `None` when it

Callers 1

installed_binary_versionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected