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

Method Set

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

Set provides primitive access for setting configuration values, optionally scoped by host.

(hostname string, key string, value string)

Source from the content-addressed store, hash-verified

39 GetOrDefault(hostname string, key string) o.Option[ConfigEntry]
40 // Set provides primitive access for setting configuration values, optionally scoped by host.
41 Set(hostname string, key string, value string)
42
43 // AccessibleColors returns the configured accessible_colors setting, optionally scoped by host.
44 AccessibleColors(hostname string) ConfigEntry

Callers 15

ServeHTTPMethod · 0.65
writeJSONFunction · 0.65
downloadMethod · 0.65
newProxyFunction · 0.65
rewriteResponseFunction · 0.65
Test_IsAuthCheckEnabledFunction · 0.65
URLMethod · 0.65
TestSSOURLFunction · 0.65
defaultConfigFunction · 0.65
uploadAssetFunction · 0.65

Implementers 2

cfginternal/config/config.go
ConfigMockinternal/gh/mock/config.go

Calls

no outgoing calls

Tested by 15

Test_IsAuthCheckEnabledFunction · 0.52
TestSSOURLFunction · 0.52
defaultConfigFunction · 0.52
Test_refreshRunFunction · 0.52
TestShouldUseExpiringFunction · 0.52
Test_loginRun_nonttyFunction · 0.52