feat: save hosts file

This commit is contained in:
Philip Henning 2025-08-14 10:09:30 +02:00
parent e59af1cb02
commit e813704f81
6 changed files with 60 additions and 23 deletions

View file

@ -15,7 +15,7 @@ func main() {
log.Fatalf("failed to parse hosts file: %v", err)
}
p := tea.NewProgram(tui.NewModel(hostsFile))
p := tea.NewProgram(tui.NewModel(hostsFile, "/etc/hosts"))
if err := p.Start(); err != nil {
log.Fatalf("failed to start TUI: %v", err)
}