(form *tview.Form, frame *tview.Frame, app *tview.Application)
| 16 | } |
| 17 | |
| 18 | func (i *WatchtowerConfig) ConfigureForm(form *tview.Form, frame *tview.Frame, app *tview.Application) { |
| 19 | enabled := i.Configured |
| 20 | form.AddCheckbox("Automatic Updates", enabled, func(checked bool) { |
| 21 | enabled = checked |
| 22 | }) |
| 23 | form.AddButton("Save", func() { |
| 24 | i.Configured = enabled |
| 25 | returnToMenu(frame, app) |
| 26 | }) |
| 27 | form.AddButton("Cancel", func() { |
| 28 | returnToMenu(frame, app) |
| 29 | }) |
| 30 | } |
| 31 | |
| 32 | func (i *WatchtowerConfig) ConfigureDocker(kind DockerConfigKind, form *tview.Form) (string, error) { |
| 33 | switch kind { |
nothing calls this directly
no test coverage detected