From 400a81fdae4ea1ff2263024a7cd0618fc31076ca Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 3 Apr 2025 21:47:18 +0200 Subject: Use TUI instead of Web --- ui/main.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ui/main.go (limited to 'ui/main.go') diff --git a/ui/main.go b/ui/main.go new file mode 100644 index 0000000..d24624a --- /dev/null +++ b/ui/main.go @@ -0,0 +1,17 @@ +package main + +import ( + "log" + + "github.com/boozec/rahanna/ui/views" + tea "github.com/charmbracelet/bubbletea" +) + +func main() { + views.ClearScreen() + p := tea.NewProgram(views.LoginModel(), tea.WithAltScreen()) + if _, err := p.Run(); err != nil { + log.Fatal(err) + } + views.ClearScreen() +} -- cgit v1.2.3-18-g5258