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

Method Hosts

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

Hosts retrieves a list of known hosts.

()

Source from the content-addressed store, hash-verified

166
167 // Hosts retrieves a list of known hosts.
168 Hosts() []string
169
170 // APIHostForHost returns the api_host configured for host, reporting false
171 // 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