Skip to main content

resolve_gh_binary

Function resolve_gh_binary 

Source
pub fn resolve_gh_binary() -> PathBuf
Expand description

Resolves gh, preferring [GH_BIN_ENV], then the first existing well-known absolute path, then bare gh on PATH.

Callers should do this once (the poller resolves it at spawn) and pass the result to resolve_with, rather than re-reading the environment per poll.