MCPcopy
hub / github.com/cli/cli / GetOrDefault

Method GetOrDefault

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

32type Config interface {
33 // GetOrDefault provides primitive access for fetching configuration values, optionally scoped by host.
34 GetOrDefault(hostname string, key string) o.Option[ConfigEntry]
35 // Set provides primitive access for setting configuration values, optionally scoped by host.
36 Set(hostname string, key string, value string)
37

Implementers 2

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

Calls

no outgoing calls