setup config loading

This commit is contained in:
juancwu 2026-01-21 18:11:28 +00:00
commit f9c8ed4f6c
6 changed files with 52 additions and 12 deletions

View file

@ -5,11 +5,14 @@ import (
"os"
"git.juancwu.dev/juancwu/porkbacon/internal/app"
"git.juancwu.dev/juancwu/porkbacon/internal/config"
tea "github.com/charmbracelet/bubbletea"
)
func main() {
a := app.New()
cfg := config.Load()
a := app.New(cfg)
p := tea.NewProgram(a)
if _, err := p.Run(); err != nil {