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

Method SetDefaultHost

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

328 // DefaultHost.
329 // Use for testing purposes only.
330 SetDefaultHost(host, source string)
331}
332
333// AliasConfig defines an interface for managing command aliases.

Callers 12

Test_BaseRepoFunction · 0.95
Test_SmartBaseRepoFunction · 0.95
Test_remoteResolverFunction · 0.95
TestNewCmdAgentTaskFunction · 0.95
TestCodeRunFunction · 0.95
Test_createRunFunction · 0.95
TestListRunDefaultHostFunction · 0.65

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 12

Test_BaseRepoFunction · 0.76
Test_SmartBaseRepoFunction · 0.76
Test_remoteResolverFunction · 0.76
TestNewCmdAgentTaskFunction · 0.76
TestCodeRunFunction · 0.76
Test_createRunFunction · 0.76
TestListRunDefaultHostFunction · 0.52