quickpassthrough/internal/ui_main.go

32 lines
783 B
Go
Raw Normal View History

package internal
// A simple example demonstrating the use of multiple text input components
// from the Bubbles component library.
import (
2023-04-10 07:10:19 -04:00
"os"
"github.com/HikariKnight/ls-iommu/pkg/errorcheck"
"github.com/HikariKnight/quickpassthrough/internal/pages"
tea "github.com/charmbracelet/bubbletea"
)
// This is where we build everything
func Tui() {
2023-04-10 07:10:19 -04:00
// Log all errors to a new logfile
os.Remove("debug.log")
logfile, err := tea.LogToFile("debug.log", "")
errorcheck.ErrorCheck(err, "Error creating log file")
defer logfile.Close()
pages.Welcome()
// Make a blank model to keep our state in
/*m := NewModel()
// Start the program with the model
p := tea.NewProgram(m, tea.WithAltScreen())
2023-04-10 07:10:19 -04:00
_, err = p.Run()
errorcheck.ErrorCheck(err, "Failed to initialize UI")*/
}