init porkbacon tui project
This commit is contained in:
commit
55be985ca7
5 changed files with 127 additions and 0 deletions
19
cmd/tui/main.go
Normal file
19
cmd/tui/main.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"git.juancwu.dev/juancwu/porkbacon/internal/app"
|
||||
tea "github.com/charmbracelet/bubbletea"
|
||||
)
|
||||
|
||||
func main() {
|
||||
a := app.New()
|
||||
|
||||
p := tea.NewProgram(a)
|
||||
if _, err := p.Run(); err != nil {
|
||||
fmt.Println("Error:", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue