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

Method Hosts

internal/config/config.go:451–456  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

449}
450
451func (c *AuthConfig) Hosts() []string {
452 if c.hostsOverride != nil {
453 return c.hostsOverride()
454 }
455 return ghauth.KnownHosts()
456}
457
458// APIHostForHost returns the api_host configured for host, reporting false when
459// the host has no api_host set. It is the inverse of HostForAPIHost.

Callers 1

HostForAPIHostMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected