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

Method Hosts

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

Hosts retrieves a list of known hosts.

()

Source from the content-addressed store, hash-verified

168
169 // Hosts retrieves a list of known hosts.
170 Hosts() []string
171
172 // APIHostForHost returns the api_host configured for host, reporting false
173 // when the host has no api_host set. See config.AuthConfig.APIHostForHost.

Callers 11

CheckAuthFunction · 0.65
ResolverMethod · 0.65
setupGitRunFunction · 0.65
switchRunFunction · 0.65
refreshRunFunction · 0.65
statusRunFunction · 0.65
logoutRunFunction · 0.65
mightBeGHESUserFunction · 0.65
TestHostsIncludesEnvVarFunction · 0.65

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls