(key string)
| 238 | } |
| 239 | |
| 240 | func defaultFor(key string) o.Option[string] { |
| 241 | for _, co := range Options { |
| 242 | if co.Key == key { |
| 243 | return o.Some(co.DefaultValue) |
| 244 | } |
| 245 | } |
| 246 | return o.None[string]() |
| 247 | } |
| 248 | |
| 249 | // AuthConfig is used for interacting with some persistent configuration for gh, |
| 250 | // with knowledge on how to access encrypted storage when neccesarry. |