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

Method DefaultHost

internal/config/config.go:509–514  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

507}
508
509func (c *AuthConfig) DefaultHost() (string, string) {
510 if c.defaultHostOverride != nil {
511 return c.defaultHostOverride()
512 }
513 return ghauth.DefaultHost()
514}
515
516// SetDefaultHost will override any host resolution and return the given
517// 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