get listing working
This commit is contained in:
parent
59b46d4902
commit
ccf39d829a
6 changed files with 680 additions and 11 deletions
18
gemlog/list.go
Normal file
18
gemlog/list.go
Normal 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}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue