MCPcopy
hub / github.com/cli/cli / defaultFor

Function defaultFor

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

Source from the content-addressed store, hash-verified

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