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

Method AddSetupQuestionWithEnvName

internal/plugins/plugin.go:79–84  ·  view source on GitHub ↗

AddSetupQuestionWithEnvName creates a setup question with an explicit environment variable name. This is useful when you want the environment variable name to remain constant across languages. The envVarName is used for the environment variable, while the question is localized.

(envVarName string, required bool, question string)

Source from the content-addressed store, hash-verified

77// This is useful when you want the environment variable name to remain constant across languages.
78// The envVarName is used for the environment variable, while the question is localized.
79func (o *PluginBase) AddSetupQuestionWithEnvName(envVarName string, required bool, question string) (ret *SetupQuestion) {
80 setting := o.AddSetting(envVarName, required)
81 ret = &SetupQuestion{Setting: setting, Question: question}
82 o.SetupQuestions = append(o.SetupQuestions, ret)
83 return
84}
85
86func (o *PluginBase) AddSetupQuestionBool(name string, required bool) (ret *SetupQuestion) {
87 return o.AddSetupQuestionCustomBool(name, required, "")

Callers 8

NewPatternsLoaderFunction · 0.80
NeeDefaultsFunction · 0.80
NewLanguageFunction · 0.80
NewCustomPatternsFunction · 0.80
NewSpotifyFunction · 0.80
NewStrategiesManagerFunction · 0.80
NewClientFunction · 0.80
NewClientFunction · 0.80

Calls 1

AddSettingMethod · 0.95

Tested by

no test coverage detected