docs: receiveStatusCmd docstring & typo fix
This commit is contained in:
parent
d609dbaf2c
commit
d1c87cb316
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue