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

Method AddSetupQuestionCustom

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

Source from the content-addressed store, hash-verified

69}
70
71func (o *PluginBase) AddSetupQuestionCustom(name string, required bool, question string) (ret *SetupQuestion) {
72 setting := o.AddSetting(name, required)
73 ret = &SetupQuestion{Setting: setting, Question: question}
74 if ret.Question == "" {
75 ret.Question = fmt.Sprintf(i18n.T("plugin_enter_value"), o.Name, strings.ToUpper(name))
76 }
77 o.SetupQuestions = append(o.SetupQuestions, ret)
78 return
79}
80
81// AddSetupQuestionWithEnvName creates a setup question with an explicit environment variable name.
82// This is useful when you want the environment variable name to remain constant across languages.

Callers 7

AddSetupQuestionMethod · 0.95
NewClientCompatibleFunction · 0.80
NewClientFunction · 0.80
NewClientFunction · 0.80
NewClientFunction · 0.80
NewClientFunction · 0.80
NewClientFunction · 0.80

Calls 2

AddSettingMethod · 0.95
TFunction · 0.92

Tested by

no test coverage detected