diff --git a/ui/model.go b/ui/model.go index 82d3e4d..0f7dba1 100644 --- a/ui/model.go +++ b/ui/model.go @@ -115,12 +115,15 @@ func NewModel(username, homeDir string, debug bool) model { // nolint:revive } } +// receiveStatusCmd signals for lines from the statusBuffer to be rendered in +// the statusViewport. This command is repeatedly called by the logic which +// responds to a renderStatusMsg in Update. func (m model) receiveStatusCmd() tea.Msg { return renderStatusMsg{line: <-m.statusBuffer} } // sendStatusCmd delivers a tea.Msg to bubbletea for rendering lines from the -// statusbuffer. Unlinke sendStatus, this method is an actual tea.Cmd. +// statusBuffer. Unlike sendStatus, this method is an actual tea.Cmd. func (m model) sendStatusCmd(lines ...string) tea.Cmd { return func() tea.Msg { return sendStatusMsg{lines: lines}