something new

This commit is contained in:
Jeff Carr 2025-08-22 04:23:28 -05:00
parent 126495ff38
commit eceb945b9c
5 changed files with 15 additions and 8 deletions

View File

@ -49,4 +49,4 @@ identify-protobuf:
playback: playback:
gemini playback gemini playback
gemini playback --uuid a1b2c3d4-e5f6-4a5b-8c9d-1e2f3a4b5c6d # gemini playback --uuid a1b2c3d4-e5f6-4a5b-8c9d-1e2f3a4b5c6d

View File

@ -23,9 +23,9 @@ type EmptyCmd struct {
} }
type PlaybackCmd struct { type PlaybackCmd struct {
List *EmptyCmd `arg:"subcommand:list" help:"list memories"` List *EmptyCmd `arg:"subcommand:list" help:"list memories"`
Force bool `arg:"--all" help:"try to strong arm things"` Long *EmptyCmd `arg:"subcommand:long" help:"show info on each chat"`
Uuid string `arg:"--uuid" help:"look at this uuid"` Uuid string `arg:"--uuid" help:"look at this uuid"`
} }
func (args) Version() string { func (args) Version() string {

View File

@ -24,7 +24,7 @@ func (args) doBashAuto() {
argv.doBashHelp() argv.doBashHelp()
switch argv.BashAuto[0] { switch argv.BashAuto[0] {
case "playback": case "playback":
fmt.Println("list --uuid") fmt.Println("long --uuid")
case "clean": case "clean":
fmt.Println("user devel master") fmt.Println("user devel master")
default: default:

View File

@ -46,6 +46,13 @@ func listChats(chats *chatpb.Chats) {
formattedTime, formattedTime,
chat.GetUuid(), chat.GetUuid(),
) )
if argv.Playback.Long != nil {
listEntries(chat)
}
} }
fmt.Println("-------------------------------------------------") fmt.Println("-------------------------------------------------")
} }
// print out one line for each chat entry
func listEntries(chat *chatpb.Chat) {
}

View File

@ -58,13 +58,13 @@ func main() {
if err != nil { if err != nil {
badExit(err) badExit(err)
} }
verifyUuids(newChats)
for _, newChat := range newChats.GetChats() { for _, newChat := range newChats.GetChats() {
me.chats.AppendByUuid(newChat) me.chats.AppendByUuid(newChat)
} }
if verifyUuids(me.chats) { me.chats.ConfigSave()
me.chats.ConfigSave()
}
okExit("") okExit("")
} }