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

Function defaultFor

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

Source from the content-addressed store, hash-verified

215}
216
217func defaultFor(key string) o.Option[string] {
218 for _, co := range Options {
219 if co.Key == key {
220 return o.Some(co.DefaultValue)
221 }
222 }
223 return o.None[string]()
224}
225
226// AuthConfig is used for interacting with some persistent configuration for gh,
227// 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