summaryrefslogtreecommitdiff
path: root/ui/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/main.go')
-rw-r--r--ui/main.go17
1 files changed, 17 insertions, 0 deletions
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()
+}