(key string)
| 213 | } |
| 214 | |
| 215 | func 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. |