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

Method AddSetupQuestionCustomBool

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

Source from the content-addressed store, hash-verified

88}
89
90func (o *PluginBase) AddSetupQuestionCustomBool(name string, required bool, question string) (ret *SetupQuestion) {
91 setting := o.AddSetting(name, required)
92 setting.Type = SettingTypeBool
93 ret = &SetupQuestion{Setting: setting, Question: question}
94 if ret.Question == "" {
95 ret.Question = fmt.Sprintf(i18n.T("plugin_enable_bool_question"), o.Name, strings.ToUpper(name))
96 }
97 o.SetupQuestions = append(o.SetupQuestions, ret)
98 return
99}
100
101func (o *PluginBase) Configure() (err error) {
102 if err = o.Settings.Configure(); err != nil {

Callers 1

AddSetupQuestionBoolMethod · 0.95

Calls 2

AddSettingMethod · 0.95
TFunction · 0.92

Tested by

no test coverage detected