(name string, required bool, question string)
| 64 | } |
| 65 | |
| 66 | func (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. |
no test coverage detected