major architecture refactor
This commit is contained in:
parent
4266bfbfc2
commit
f82d06dbf0
11 changed files with 636 additions and 272 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue