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

Method AddSetting

internal/plugins/plugin.go:56–60  ·  view source on GitHub ↗
(name string, required bool)

Source from the content-addressed store, hash-verified

54}
55
56func (o *PluginBase) AddSetting(name string, required bool) (ret *Setting) {
57 ret = NewSetting(fmt.Sprintf("%v%v", o.EnvNamePrefix, BuildEnvVariable(name)), required)
58 o.Settings = append(o.Settings, ret)
59 return
60}
61
62func (o *PluginBase) AddSetupQuestion(name string, required bool) (ret *SetupQuestion) {
63 return o.AddSetupQuestionCustom(name, required, "")

Callers 6

NeeDefaultsFunction · 0.80
NewClientFunction · 0.80

Calls 2

NewSettingFunction · 0.85
BuildEnvVariableFunction · 0.85

Tested by 1