Add edit mode toggle and entry activation

This commit is contained in:
Philip Henning 2025-08-13 16:39:39 +02:00
parent 0c60248d75
commit 51966f766c
6 changed files with 69 additions and 17 deletions

View file

@ -111,3 +111,8 @@ func (m Model) SelectedEntry() *core.HostEntry {
}
return m.hosts.Entries[idx]
}
// Mode returns the current operating mode of the TUI.
func (m Model) Mode() Mode {
return m.mode
}