Files
box-box/cmd/main.go
2026-03-03 00:48:05 -05:00

28 lines
502 B
Go

package main
import (
"fmt"
"os"
"time"
"github.com/AmanTahiliani/box-box/internal/api"
"github.com/AmanTahiliani/box-box/internal/ui"
tea "github.com/charmbracelet/bubbletea"
)
func main() {
client := api.NewOpenF1Client("https://api.openf1.org", 15*time.Second)
model := ui.NewAppModel(client)
p := tea.NewProgram(
model,
tea.WithAltScreen(),
tea.WithMouseCellMotion(),
)
if _, err := p.Run(); err != nil {
fmt.Fprintf(os.Stderr, "box-box error: %v\n", err)
os.Exit(1)
}
}