Skip to main content

parse_cli_version

Function parse_cli_version 

Source
pub fn parse_cli_version(text: &str) -> Option<(u32, u32, u32)>
Expand description

The first <major>.<minor>.<patch> run in a version line.

gh version 2.19.0 (2022-10-25) and glab 1.114.0 (4d7c6cd) both resolve. Nothing else in the crate parses a version string.