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

Method DefaultHost

internal/config/config.go:485–490  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

483}
484
485func (c *AuthConfig) DefaultHost() (string, string) {
486 if c.defaultHostOverride != nil {
487 return c.defaultHostOverride()
488 }
489 return ghauth.DefaultHost()
490}
491
492// SetDefaultHost will override any host resolution and return the given
493// host and source for all calls to DefaultHost. Use for testing purposes only.

Callers

nothing calls this directly

Calls 1

DefaultHostMethod · 0.65

Tested by

no test coverage detected