mirror of
https://github.com/catppuccin/cli.git
synced 2026-02-16 00:19:09 +08:00
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>
32 lines
566 B
Go
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
|