MCPcopy Create free account
hub / github.com/cli/cli / APIHostForHost

Method APIHostForHost

internal/gh/gh.go:270–270  ·  view source on GitHub ↗

APIHostForHost returns the api_host configured for host, reporting false when the host has no api_host set. See config.AuthConfig.APIHostForHost.

(host string)

Source from the content-addressed store, hash-verified

268 // APIHostForHost returns the api_host configured for host, reporting false
269 // when the host has no api_host set. See config.AuthConfig.APIHostForHost.
270 APIHostForHost(host string) (apiHost string, found bool)
271
272 // HostForAPIHost returns the known host whose api_host is the given hostname,
273 // reporting false when no host claims it. See config.AuthConfig.HostForAPIHost.

Callers 3

apiRunFunction · 0.65
TestAPIHostForHostFunction · 0.65
config.goFile · 0.65

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 1

TestAPIHostForHostFunction · 0.52