diff --git a/cli/model.go b/cli/model.go index 6879456..d4965e5 100644 --- a/cli/model.go +++ b/cli/model.go @@ -51,7 +51,7 @@ func (m model) Init() tea.Cmd { return textarea.Blink } -func (m *model) getCommmandsList() []command { +func (m *model) getCommandsList() []command { if m.status == hosts.FocusStatusOn { return []command{commandFocusOff, commandConfigureBlacklist} } @@ -69,7 +69,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg := msg.(type) { case tea.KeyMsg: - commands := m.getCommmandsList() + commands := m.getCommandsList() switch msg.String() { case "up", "k": diff --git a/cli/view.go b/cli/view.go index dc07bff..6f5dd0f 100644 --- a/cli/view.go +++ b/cli/view.go @@ -42,7 +42,7 @@ func (m model) View() string { } if m.state == menuView { - commands := m.getCommmandsList() + commands := m.getCommandsList() l := list.New().Enumerator(func(items list.Items, i int) string { if i == m.commandsListSelection {