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

Method GetOrDefault

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

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

Implementers 2

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

Calls

no outgoing calls