(name string, required bool, question string)
| 88 | } |
| 89 | |
| 90 | func (o *PluginBase) AddSetupQuestionCustomBool(name string, required bool, question string) (ret *SetupQuestion) { |
| 91 | setting := o.AddSetting(name, required) |
| 92 | setting.Type = SettingTypeBool |
| 93 | ret = &SetupQuestion{Setting: setting, Question: question} |
| 94 | if ret.Question == "" { |
| 95 | ret.Question = fmt.Sprintf(i18n.T("plugin_enable_bool_question"), o.Name, strings.ToUpper(name)) |
| 96 | } |
| 97 | o.SetupQuestions = append(o.SetupQuestions, ret) |
| 98 | return |
| 99 | } |
| 100 | |
| 101 | func (o *PluginBase) Configure() (err error) { |
| 102 | if err = o.Settings.Configure(); err != nil { |
no test coverage detected