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

Method DefaultHost

internal/config/config.go:401–406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

399}
400
401func (c *AuthConfig) DefaultHost() (string, string) {
402 if c.defaultHostOverride != nil {
403 return c.defaultHostOverride()
404 }
405 return ghauth.DefaultHost()
406}
407
408// SetDefaultHost will override any host resolution and return the given
409// 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