MCPcopy
hub / github.com/cli/cli / SetDefaultHost

Method SetDefaultHost

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

SetDefaultHost will override any host resolution and return the given host and source for all calls to DefaultHost. Use for testing purposes only.

(host, source string)

Source from the content-addressed store, hash-verified

168 // DefaultHost.
169 // Use for testing purposes only.
170 SetDefaultHost(host, source string)
171}
172
173// AliasConfig defines an interface for managing command aliases.

Callers 10

Test_BaseRepoFunction · 0.95
Test_SmartBaseRepoFunction · 0.95
Test_remoteResolverFunction · 0.95
TestNewCmdAgentTaskFunction · 0.95
TestCodeRunFunction · 0.95
Test_createRunFunction · 0.95
Test_getExtensionReposFunction · 0.95

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 10

Test_BaseRepoFunction · 0.76
Test_SmartBaseRepoFunction · 0.76
Test_remoteResolverFunction · 0.76
TestNewCmdAgentTaskFunction · 0.76
TestCodeRunFunction · 0.76
Test_createRunFunction · 0.76
Test_getExtensionReposFunction · 0.76