cli/internal/ui/ui.go
spooky 49382da8d1
chore: update feat-better-logger with dev (#32) (#38)
Co-authored-by: bashbunni <bashbunni.io@gmail.com>
Co-authored-by: ghostx31 <68803793+ghostx31@users.noreply.github.com>
Co-authored-by: Dukk <48651837+DakshG07@users.noreply.github.com>
Co-authored-by: jolheiser <john.olheiser@gmail.com>
2022-11-17 19:23:13 +05:30

32 lines
566 B
Go

package ui
import (
"github.com/caarlos0/log"
tea "github.com/charmbracelet/bubbletea"
)
var p *tea.Program
func Run() {
p := tea.NewProgram(NewInitialModel())
if err := p.Start(); err != nil {
panic(err)
}
if Cloned {
// fmt.Println("Finished!")
log.Log.Info("Finished!")
}
}
// I put all the globals here :shrug:
var (
RepoName string
ExecName string
Cloned bool // Planning to use this to determine when to exit the spinner when the repo is cloned.
LinuxLoc string
MacLoc string
WindowsLoc string // Bruh
)
type errMsg error