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

@@ -15,7 +15,7 @@ var editCmd = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
hostname := args[0]
err := ui.RunEditForm(hostname)
err := ui.RunEditForm(hostname, configFile)
if err != nil {
fmt.Printf("Error editing host: %v\n", err)
}