MCPcopy Create free account
hub / github.com/danielmiessler/Fabric / Configure

Method Configure

internal/plugins/plugin.go:284–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

TestSetting_ConfigureFunction · 0.95

Calls 1

IsValidErrMethod · 0.95

Tested by 1

TestSetting_ConfigureFunction · 0.76