1
0
mirror of https://github.com/mrusme/neonmodem.git synced 2024-12-04 14:46:37 -05:00
neonmodem/gobbs.go
2022-12-28 22:22:36 -05:00

26 lines
420 B
Go

package main
import (
tea "github.com/charmbracelet/bubbletea"
"github.com/mrusme/gobbs/system"
"github.com/mrusme/gobbs/ui"
"github.com/mrusme/gobbs/ui/ctx"
)
func main() {
c := ctx.New()
discourse, err := system.New("discourse", nil)
if err != nil {
panic(err)
}
c.AddSystem(&discourse)
tui := tea.NewProgram(ui.NewModel(&c), tea.WithAltScreen())
err = tui.Start()
if err != nil {
panic(err)
}
}