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

Method HostForAPIHost

internal/gh/gh.go:178–178  ·  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

176 // HostForAPIHost returns the known host whose api_host is the given hostname,
177 // reporting false when no host claims it. See config.AuthConfig.HostForAPIHost.
178 HostForAPIHost(apiHost string) (host string, found bool)
179
180 // DefaultHost retrieves the default host.
181 DefaultHost() (host string, source string)

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 2

TestHostForAPIHostFunction · 0.52