app frame + storage

This commit is contained in:
2026-11-04 16:33:26 +01:00
commit 21694908a3
16 changed files with 1198 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
package main
import (
"flag"
"fmt"
"os"
tea "github.com/charmbracelet/bubbletea"
)
func main() {
project := flag.String("project", ".", "project directory to inspect (default: current directory)")
flag.Parse()
if flag.NArg() != 0 {
fmt.Fprintln(os.Stderr, "unexpected arguments; use --project PATH")
os.Exit(2)
}
model, err := newModel(*project)
if err != nil {
fmt.Fprintln(os.Stderr, "todoapp:", err)
os.Exit(1)
}
if _, err := tea.NewProgram(model, tea.WithAltScreen()).Run(); err != nil {
fmt.Fprintln(os.Stderr, "todoapp: terminal error:", err)
os.Exit(1)
}
}