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

Function defaultFor

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

Source from the content-addressed store, hash-verified

241}
242
243func defaultFor(key string) o.Option[string] {
244 for _, co := range Options {
245 if co.Key == key {
246 return o.Some(co.DefaultValue)
247 }
248 }
249 return o.None[string]()
250}
251
252// AuthConfig is used for interacting with some persistent configuration for gh,
253// 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