fix: pass config file flag to add/edit commands

This commit is contained in:
2025-09-03 08:33:07 +02:00
parent adde6eb666
commit 959c084466
5 changed files with 7 additions and 7 deletions

View File

@@ -270,9 +270,9 @@ func (m standaloneAddForm) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
// RunAddForm provides backward compatibility for standalone add form
func RunAddForm(hostname string) error {
func RunAddForm(hostname string, configFile string) error {
styles := NewStyles(80)
addForm := NewAddForm(hostname, styles, 80, 24, "")
addForm := NewAddForm(hostname, styles, 80, 24, configFile)
m := standaloneAddForm{addForm}
p := tea.NewProgram(m, tea.WithAltScreen())