quickpassthrough/internal/ui_main.go
2024-01-01 12:55:26 +01:00

24 lines
614 B
Go

package internal
// A simple example demonstrating the use of multiple text input components
// from the Bubbles component library.
import (
"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() {
// Log all errors to a new logfile (super useful feature of BubbleTea!)
os.Remove("debug.log")
logfile, err := tea.LogToFile("debug.log", "")
errorcheck.ErrorCheck(err, "Error creating log file")
defer logfile.Close()
// New WIP Tui
pages.Welcome()
}