get listing working

This commit is contained in:
Travis Shears 2025-10-01 15:04:08 +02:00
parent 59b46d4902
commit ccf39d829a
6 changed files with 680 additions and 11 deletions

18
gemlog/list.go Normal file
View file

@ -0,0 +1,18 @@
package gemlog
import (
"log/slog"
tea "github.com/charmbracelet/bubbletea"
)
func LoadGemlogCMD(config *Config) tea.Cmd {
return func() tea.Msg {
logs, err := listGemLogs(config)
slog.Info("Loaded gemlogs", "count", len(logs))
if err != nil {
return ErrorMsg{err}
}
return GemLogsLoaded{logs}
}
}