Skip to main content

cli_available

Function cli_available 

Source
pub fn cli_available(cli: &str) -> bool
Expand description

True when the CLI responds to <cli> info with success within CLI_PROBE_TIMEOUT — the same liveness probe every runtime used before this module existed, but bounded so an unreachable daemon can’t hang the caller indefinitely (the CLI blocks on connect with no timeout of its own), and memoized per process so a dozen runtimes probing at startup don’t each pay that bound.