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

Method AddSetupQuestionCustom

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

Source from the content-addressed store, hash-verified

64}
65
66func (o *PluginBase) AddSetupQuestionCustom(name string, required bool, question string) (ret *SetupQuestion) {
67 setting := o.AddSetting(name, required)
68 ret = &SetupQuestion{Setting: setting, Question: question}
69 if ret.Question == "" {
70 ret.Question = fmt.Sprintf(i18n.T("plugin_enter_value"), o.Name, strings.ToUpper(name))
71 }
72 o.SetupQuestions = append(o.SetupQuestions, ret)
73 return
74}
75
76// AddSetupQuestionWithEnvName creates a setup question with an explicit environment variable name.
77// 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