setup config loading
This commit is contained in:
parent
a44c3756c7
commit
f9c8ed4f6c
6 changed files with 52 additions and 12 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue