major architecture refactor

This commit is contained in:
juancwu 2026-01-23 03:10:53 +00:00
commit f82d06dbf0
11 changed files with 636 additions and 272 deletions

View file

@ -4,16 +4,16 @@ import (
"fmt"
"os"
"git.juancwu.dev/juancwu/porkbacon/internal/app"
"git.juancwu.dev/juancwu/porkbacon/internal/ui"
tea "github.com/charmbracelet/bubbletea"
)
func main() {
a := app.New()
m := ui.New()
p := tea.NewProgram(&a)
p := tea.NewProgram(m, tea.WithAltScreen())
if _, err := p.Run(); err != nil {
fmt.Println("Error:", err)
os.Exit(1)
}
}
}