Files
2026-01-07 19:59:01 -08:00

32 lines
748 B
Go

// Copyright (C) 2024-2025, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
// Package main provides the entry point for the Lux TUI application.
// This TUI provides a dashboard for monitoring and managing the Lux blockchain stack.
package main
import (
"fmt"
"os"
tea "github.com/charmbracelet/bubbletea"
"github.com/luxfi/tui/app"
)
func main() {
// Create the main application model
model := app.NewApp()
// Create and run the program
p := tea.NewProgram(
model,
tea.WithAltScreen(), // Use alternate screen buffer
tea.WithMouseCellMotion(), // Enable mouse support
)
if _, err := p.Run(); err != nil {
fmt.Fprintf(os.Stderr, "Error running TUI: %v\n", err)
os.Exit(1)
}
}