Added basic music playback + tui
This commit is contained in:
13
pkg/commands.go
Normal file
13
pkg/commands.go
Normal 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}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user