25 lines
396 B
Go
25 lines
396 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
|
|
gomus "git.cesium.pw/niku/gomus/pkg"
|
|
tea "github.com/charmbracelet/bubbletea"
|
|
)
|
|
|
|
func main() {
|
|
if len(os.Args) < 2 {
|
|
log.Fatal("Expected a path to some music")
|
|
}
|
|
|
|
p := tea.NewProgram(gomus.NewModel(gomus.ModelConfig{
|
|
MusicPath: os.Args[1],
|
|
GomusPath: ".gomus",
|
|
}))
|
|
|
|
if err := p.Start(); err != nil {
|
|
log.Fatalf("Failed to start: %v", err)
|
|
}
|
|
}
|