Added basic music playback + tui

This commit is contained in:
2022-03-20 19:50:55 +01:00
parent f9124deba7
commit 8fff93464a
13 changed files with 527 additions and 1 deletions

13
pkg/commands.go Normal file
View File

@@ -0,0 +1,13 @@
package gomus
import tea "github.com/charmbracelet/bubbletea"
type trackChangeMsg struct {
nextTrack track
}
func newTrackChangeCmd(nextTrack track) tea.Cmd {
return func() tea.Msg {
return trackChangeMsg{nextTrack}
}
}