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

Function defaultFor

internal/config/config.go:216–223  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

214}
215
216func defaultFor(key string) o.Option[string] {
217 for _, co := range Options {
218 if co.Key == key {
219 return o.Some(co.DefaultValue)
220 }
221 }
222 return o.None[string]()
223}
224
225// AuthConfig is used for interacting with some persistent configuration for gh,
226// with knowledge on how to access encrypted storage when neccesarry.

Callers 1

GetOrDefaultMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected