1
0
mirror of https://github.com/mrusme/neonmodem.git synced 2024-10-06 04:53:35 -04:00
neonmodem/gobbs.go

26 lines
420 B
Go
Raw Normal View History

2022-12-28 22:22:36 -05:00
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)
}
}