Skip to main content

gh_api_delete_with_binary

Function gh_api_delete_with_binary 

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

DELETE a GitHub API endpoint via gh_binary.

Path-taking like gh_api_get_with_binary so tests can point at a stub binary without mutating PATH. Returns Ok(()) on success; the error message carries the redacted gh stderr (including the HTTP status shape, e.g. HTTP 404) so callers can classify already-absent targets.