tune/cmd/tune.go

47 lines
579 B
Go

package cmd
import (
"fmt"
"path/filepath"
"github.com/spf13/viper"
//"github.com/ebitengine/oto/v3"
)
var (
playIndividualFile bool = false
filePath string = ""
songToPlay Song
songList []Song
)
type Song struct {
Title string
Path string
}
func (s *Song) Play() {
}
func NewSong(p string) Song {
newS := Song{}
newS.Title = filepath.Base(p)
newS.Path = p
return newS
}
func findFiles() {
}
func tune() {
title := viper.Get("title")
fmt.Println(title)
if playIndividualFile == true {
songToPlay = NewSong(filePath)
}
tui()
}