spacetea/main.go

22 lines
412 B
Go
Raw Normal View History

2022-05-17 23:29:59 -04:00
package main
import (
"fmt"
"os"
sim "git.saintnet.tech/stryan/spacetea/simulator"
tea "github.com/charmbracelet/bubbletea"
)
2022-05-18 22:47:48 -04:00
var simulator *sim.Simulator
2022-05-17 23:29:59 -04:00
func main() {
2022-05-18 22:47:48 -04:00
simulator = sim.NewSimulator()
simulator.Start()
2022-05-19 12:58:37 -04:00
parent := parent{initMainscreen()}
if err := tea.NewProgram(parent, tea.WithAltScreen()).Start(); err != nil {
2022-05-17 23:29:59 -04:00
fmt.Printf("Uh oh, there was an error: %v\n", err)
os.Exit(1)
}
}