blob: 4ed2275493cb3bd6aa3c848195640b83599b57db (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package main
import (
"fmt"
"github.com/Fuwn/faustus/internal/app"
"github.com/Fuwn/faustus/internal/claude"
tea "github.com/charmbracelet/bubbletea"
"os"
)
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)
}
}
|