Gim/cmd/gim/main.go

16 lines
335 B
Go

package main
import (
"git.gophernest.net/azpect/TextEditor/internal/editor"
tea "github.com/charmbracelet/bubbletea"
)
func main() {
// TODO: Not how this should work, of course
lines := []string{"Hello world", "line 2", "line 3", "line 4", "line 5"}
tea.NewProgram(
editor.NewModel(lines),
tea.WithAltScreen(),
).Run()
}