Added pause command

This commit is contained in:
2022-03-21 18:50:34 +01:00
parent ea8c90502f
commit bdefd6d2fb
3 changed files with 23 additions and 1 deletions

View File

@@ -11,3 +11,13 @@ func newTrackChangeCmd(nextTrack track) tea.Cmd {
return trackChangeMsg{nextTrack}
}
}
type trackPauseMsg struct {
isPaused bool
}
func newTrackPauseCmd(isPaused bool) tea.Cmd {
return func() tea.Msg {
return trackPauseMsg{isPaused}
}
}