Extracts the version from `tracedecay --version` output (e.g. `tracedecay 5.0.1` → `5.0.1`).
(output: &str)
| 762 | /// Extracts the version from `tracedecay --version` output |
| 763 | /// (e.g. `tracedecay 5.0.1` → `5.0.1`). |
| 764 | fn 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 |
no outgoing calls
no test coverage detected