| 12345678910111213141516171819202122232425262728293031323334 |
- // TODO implement create/edit/delete funcs
- //
- // TODO implement attempt to auto load issues folder if no arg specified
- package main
- import (
- "flag"
- "fmt"
- "issues"
- "os"
- tea "github.com/charmbracelet/bubbletea"
- )
- func main() {
- flag.Parse()
- arg := flag.Args()
- if len(arg) == 0 {
- fmt.Println("Not enough args:", arg)
- os.Exit(1)
- }
- p := tea.NewProgram(
- issues.Model{Path: arg[0]},
- 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)
- }
- }
|