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

Method Hosts

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

Hosts retrieves a list of known hosts.

()

Source from the content-addressed store, hash-verified

265
266 // Hosts retrieves a list of known hosts.
267 Hosts() []string
268
269 // APIHostForHost returns the api_host configured for host, reporting false
270 // when the host has no api_host set. See config.AuthConfig.APIHostForHost.

Callers 12

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

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 4

Test_logoutRun_nonttyFunction · 0.52
TestHostsIncludesEnvVarFunction · 0.52