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

Method HostForAPIHost

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

HostForAPIHost returns the known host whose api_host is the given hostname, reporting false when no host claims it. See config.AuthConfig.HostForAPIHost.

(apiHost string)

Source from the content-addressed store, hash-verified

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.
274 HostForAPIHost(apiHost string) (host string, found bool)
275
276 // DefaultHost retrieves the default host.
277 DefaultHost() (host string, source string)

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 2

TestHostForAPIHostFunction · 0.52