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

Method SetDefaultHost

internal/gh/gh.go:216–216  ·  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

214 // DefaultHost.
215 // Use for testing purposes only.
216 SetDefaultHost(host, source string)
217}
218
219// 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