aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-01-30 07:32:54 +0000
committerFuwn <[email protected]>2026-01-30 07:32:54 +0000
commit5f3eba126201e4d679539aa2517bf6a132f29cd0 (patch)
tree961afe2ae1d6ca0f23bdbb30930e37bc88884146 /main.go
downloadfaustus-5f3eba126201e4d679539aa2517bf6a132f29cd0.tar.xz
faustus-5f3eba126201e4d679539aa2517bf6a132f29cd0.zip
feat: Initial commit
Diffstat (limited to 'main.go')
-rw-r--r--main.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..0a50f07
--- /dev/null
+++ b/main.go
@@ -0,0 +1,26 @@
+package main
+
+import (
+ "fmt"
+ "os"
+
+ "github.com/Fuwn/faustus/internal/app"
+ "github.com/Fuwn/faustus/internal/claude"
+ tea "github.com/charmbracelet/bubbletea"
+)
+
+func main() {
+ sessions, err := claude.LoadAllSessions()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error loading sessions: %v\n", err)
+ os.Exit(1)
+ }
+
+ m := app.NewModel(sessions)
+ p := tea.NewProgram(m, tea.WithAltScreen(), tea.WithMouseCellMotion())
+
+ if _, err := p.Run(); err != nil {
+ fmt.Fprintf(os.Stderr, "Error running program: %v\n", err)
+ os.Exit(1)
+ }
+}