diff options
| author | Jeff Carr <[email protected]> | 2025-09-01 22:19:44 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-01 22:19:44 -0500 |
| commit | 49ad81bc279a8b1669f68e5d02c95d2a66a5cb4b (patch) | |
| tree | 18a6475a98a70ab88d73cd44be73c91b7ea74136 /humanTable.go | |
| parent | 559e276c44962be9b14506e42326ff07fdafb579 (diff) | |
more stuff for importing JSON output from gemini-cli
Diffstat (limited to 'humanTable.go')
| -rw-r--r-- | humanTable.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/humanTable.go b/humanTable.go index 29e6411..b134efb 100644 --- a/humanTable.go +++ b/humanTable.go @@ -78,7 +78,7 @@ func (c *Chat) PrintChatGeminiTable() { // print the header args := []string{"uuid", "age", "ID", "Who", "model", "", "", "", "", ""} - sizes := []int{40, 5, 5, 8, 12, 2, 2, 2, 2, 2} + sizes := []int{40, 5, 5, 8, 16, 2, 2, 2, 2, 2} log.Info(cobol.StandardTableSize10(sizes, args)) for _, e := range c.GetEntries() { @@ -94,7 +94,11 @@ func (c *Chat) PrintChatGeminiTable() { } if e.GetContentFile() != "" { parts := strings.Split(e.GetContentFile(), ".") - id = parts[3] + if len(parts) < 4 { + id = "??" + } else { + id = parts[3] + } } args = []string{e.Uuid, age, id, e.From.String(), model, "", "", "", "", ""} |
