feat: add ui package

This commit is contained in:
2026-02-10 21:54:47 +00:00
parent b792360a2a
commit 7338c774ab
6 changed files with 281 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package ui
import (
"tz-snipe/internal/github"
tea "github.com/charmbracelet/bubbletea"
)
type tzsMsg []string
type errMsg error
func fetchGithubCmd(username string) tea.Cmd {
return func() tea.Msg {
tzs, err := github.GetTzsForUser(username)
if err != nil {
return errMsg(err)
}
return tzsMsg(tzs)
}
}