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)
| 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. |
| 79 | func (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 | |
| 86 | func (o *PluginBase) AddSetupQuestionBool(name string, required bool) (ret *SetupQuestion) { |
| 87 | return o.AddSetupQuestionCustomBool(name, required, "") |
no test coverage detected