tune/cmd/tune.go

47 lines
579 B
Go
Raw Normal View History

2024-05-16 08:58:32 +02:00
package cmd
2024-05-16 09:13:02 +02:00
import (
"fmt"
2024-05-17 09:43:43 +02:00
"path/filepath"
2024-05-16 09:13:02 +02:00
"github.com/spf13/viper"
//"github.com/ebitengine/oto/v3"
2024-05-16 09:13:02 +02:00
)
2024-05-17 09:43:43 +02:00
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() {
2024-05-16 08:58:32 +02:00
2024-05-17 09:43:43 +02:00
}
func tune() {
title := viper.Get("title")
fmt.Println(title)
2024-05-17 09:43:43 +02:00
if playIndividualFile == true {
songToPlay = NewSong(filePath)
}
tui()
2024-05-16 08:58:32 +02:00
}