mirror of
https://github.com/shokinn/hosts-go.git
synced 2025-08-23 08:33:02 +00:00
feat: save hosts file
This commit is contained in:
parent
e59af1cb02
commit
e813704f81
6 changed files with 60 additions and 23 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue