mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-12-04 14:46:37 -05:00
26 lines
420 B
Go
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)
|
|
}
|
|
}
|