| 123456789101112131415161718192021222324 |
- // TODO implement cli argv defs
- package main
- import (
- "buggo"
- "fmt"
- "os"
- tea "github.com/charmbracelet/bubbletea"
- )
- func main() {
- bug, _ := buggo.LoadBug("tests/bugs/test-1") // TODO set via argv
- p := tea.NewProgram(
- buggo.Model{Bug: bug},
- tea.WithAltScreen(), // use the full size of the terminal in its "alternate screen buffer"
- // tea.WithMouseCellMotion(), // turn on mouse support so we can track the mouse wheel
- )
- if _, err := p.Run(); err != nil {
- fmt.Println("could not run program:", err)
- os.Exit(1)
- }
- }
|