diff options
| author | Fuwn <[email protected]> | 2026-01-30 07:32:54 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-01-30 07:32:54 +0000 |
| commit | 5f3eba126201e4d679539aa2517bf6a132f29cd0 (patch) | |
| tree | 961afe2ae1d6ca0f23bdbb30930e37bc88884146 /main.go | |
| download | faustus-5f3eba126201e4d679539aa2517bf6a132f29cd0.tar.xz faustus-5f3eba126201e4d679539aa2517bf6a132f29cd0.zip | |
feat: Initial commit
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -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) + } +} |