Skip to main content

query_cli_version

Function query_cli_version 

Source
pub fn query_cli_version(binary: &str) -> Result<String, Error>
Expand description

Run <binary> --version synchronously and return the stdout.

§Errors

Error::CliNotFound when the binary isn’t on PATH; Error::Io on any other spawn/wait failure; Error::Process when the version probe exits non-zero.