-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
42 lines (30 loc) · 962 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package main
import (
"fmt"
"os"
"github.com/anjolaoluwaakindipe/fyne-youtube/app"
"github.com/anjolaoluwaakindipe/fyne-youtube/tui"
tea "github.com/charmbracelet/bubbletea"
)
func main() {
// fmt.Println("Please Input a video Id from youtube")
// fmt.Print("-> ")
// reader := bufio.NewReader(os.Stdin)
// videoId, stringReadErr := reader.ReadString('\n');
// if stringReadErr != nil{
// log.Fatal(stringReadErr.Error())
// return
// }
// videoId = strings.Replace(videoId, "\r\n", "", 1)
// videodownload.InitViedoDownload(videoId, &youtubeClient)
app.TuiProgram = tea.NewProgram(tui.InitialStartingUIModel())
if err:=app.TuiProgram.Start(); err!=nil {
fmt.Printf("Alas, there's been an error: %v", err)
os.Exit(1)
}
// videoDownloader.Download()
// fmt.Println("Starting download")
// videodownload.VideoDownloadInstance.SingleVideoDownload("ljuKnv9D5JU")()
// fmt.Println("")
// fmt.Println("Download finished")
}