diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-04-03 21:47:18 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-04-03 21:47:18 +0200 |
commit | 400a81fdae4ea1ff2263024a7cd0618fc31076ca (patch) | |
tree | 77b4a41084af4330c5d002785936f56bb46528fb /ui/main.go | |
parent | 0d987f5c97cc8c0e205193ef8c67745ac981d5bf (diff) |
Use TUI instead of Web
Diffstat (limited to 'ui/main.go')
-rw-r--r-- | ui/main.go | 17 |
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() +} |