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

Method GetOrDefault

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

GetOrDefault provides primitive access for fetching configuration values, optionally scoped by host.

(hostname string, key string)

Source from the content-addressed store, hash-verified

37type Config interface {
38 // GetOrDefault provides primitive access for fetching configuration values, optionally scoped by host.
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

Implementers 2

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

Calls

no outgoing calls