()
| 282 | } |
| 283 | |
| 284 | func (o *Setting) Configure() error { |
| 285 | envValue := os.Getenv(o.EnvVariable) |
| 286 | if envValue != "" { |
| 287 | o.Value = envValue |
| 288 | } |
| 289 | return o.IsValidErr() |
| 290 | } |
| 291 | |
| 292 | func NewSetupQuestion(question string) *SetupQuestion { |
| 293 | return &SetupQuestion{Setting: &Setting{}, Question: question} |