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

Method HostForAPIHost

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

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

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 2

TestHostForAPIHostFunction · 0.52