main.go 515 B

123456789101112131415161718192021222324
  1. // TODO implement cli argv defs
  2. package main
  3. import (
  4. "buggo"
  5. "fmt"
  6. "os"
  7. tea "github.com/charmbracelet/bubbletea"
  8. )
  9. func main() {
  10. bug, _ := buggo.LoadBug("tests/bugs/test-1")
  11. p := tea.NewProgram(
  12. buggo.Model{Bug: bug},
  13. tea.WithAltScreen(), // use the full size of the terminal in its "alternate screen buffer"
  14. // tea.WithMouseCellMotion(), // turn on mouse support so we can track the mouse wheel
  15. )
  16. if _, err := p.Run(); err != nil {
  17. fmt.Println("could not run program:", err)
  18. os.Exit(1)
  19. }
  20. }