mirror of
https://github.com/luxfi/tui.git
synced 2026-10-30 15:14:53 +00:00
32 lines
748 B
Go
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)
|
|
}
|
|
}
|