From eceb945b9c88d8e7a3456517348507cac07cd15c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 22 Aug 2025 04:23:28 -0500 Subject: [PATCH] something new --- Makefile | 2 +- argv.go | 6 +++--- argvAutoshell.go | 2 +- doPlayback.go | 7 +++++++ main.go | 6 +++--- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 8c8ff28..8cac298 100644 --- a/Makefile +++ b/Makefile @@ -49,4 +49,4 @@ identify-protobuf: playback: gemini playback - gemini playback --uuid a1b2c3d4-e5f6-4a5b-8c9d-1e2f3a4b5c6d + # gemini playback --uuid a1b2c3d4-e5f6-4a5b-8c9d-1e2f3a4b5c6d diff --git a/argv.go b/argv.go index 9c6d4b0..7bc1c87 100644 --- a/argv.go +++ b/argv.go @@ -23,9 +23,9 @@ type EmptyCmd struct { } type PlaybackCmd struct { - List *EmptyCmd `arg:"subcommand:list" help:"list memories"` - Force bool `arg:"--all" help:"try to strong arm things"` - Uuid string `arg:"--uuid" help:"look at this uuid"` + List *EmptyCmd `arg:"subcommand:list" help:"list memories"` + Long *EmptyCmd `arg:"subcommand:long" help:"show info on each chat"` + Uuid string `arg:"--uuid" help:"look at this uuid"` } func (args) Version() string { diff --git a/argvAutoshell.go b/argvAutoshell.go index 7f2f82d..bc97af2 100644 --- a/argvAutoshell.go +++ b/argvAutoshell.go @@ -24,7 +24,7 @@ func (args) doBashAuto() { argv.doBashHelp() switch argv.BashAuto[0] { case "playback": - fmt.Println("list --uuid") + fmt.Println("long --uuid") case "clean": fmt.Println("user devel master") default: diff --git a/doPlayback.go b/doPlayback.go index e636004..019db68 100644 --- a/doPlayback.go +++ b/doPlayback.go @@ -46,6 +46,13 @@ func listChats(chats *chatpb.Chats) { formattedTime, chat.GetUuid(), ) + if argv.Playback.Long != nil { + listEntries(chat) + } } fmt.Println("-------------------------------------------------") } + +// print out one line for each chat entry +func listEntries(chat *chatpb.Chat) { +} diff --git a/main.go b/main.go index 7a10537..8d5b67a 100644 --- a/main.go +++ b/main.go @@ -58,13 +58,13 @@ func main() { if err != nil { badExit(err) } + verifyUuids(newChats) + for _, newChat := range newChats.GetChats() { me.chats.AppendByUuid(newChat) } - if verifyUuids(me.chats) { - me.chats.ConfigSave() - } + me.chats.ConfigSave() okExit("") }