confetty/main.go

19 lines
279 B
Go
Raw Normal View History

2021-08-07 01:24:56 +00:00
package main
import (
"fmt"
"os"
2021-08-07 18:46:09 +00:00
"github.com/maaslalani/confetty/confetty"
2021-08-07 01:24:56 +00:00
tea "github.com/charmbracelet/bubbletea"
)
func main() {
2021-08-07 03:43:02 +00:00
p := tea.NewProgram(confetty.InitialModel(), tea.WithAltScreen())
2021-08-07 01:24:56 +00:00
if err := p.Start(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}