Skip to main content

gh_api_get_with_binary

Function gh_api_get_with_binary 

Source
pub fn gh_api_get_with_binary(
    gh_binary: &Path,
    endpoint: &str,
    token: Option<&str>,
) -> Result<Value>
Expand description

GET a GitHub API endpoint via gh_binary (single request, no pagination).

Path-taking sibling of gh_api_get so tests can point at a missing or stub binary inside a tempfile::tempdir() without mutating PATH. When gh_binary has no separator (e.g. Path::new("gh")), Command::new falls back to a PATH lookup — the production behavior — so the wrapper is a true no-op in normal use.