summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-22 03:15:41 -0500
committerJeff Carr <[email protected]>2025-08-22 03:15:41 -0500
commite69177bc53dc03872906442e3ba0a91446143e7f (patch)
tree29954aa3828cb9001c82329ea0adca6a5268e559
parent05105e6fd1926a5326b30ba6bd28387215aa8320 (diff)
find uuid
-rw-r--r--argv.go1
-rw-r--r--doPlayback.go14
2 files changed, 15 insertions, 0 deletions
diff --git a/argv.go b/argv.go
index 398cd8d..9c6d4b0 100644
--- a/argv.go
+++ b/argv.go
@@ -25,6 +25,7 @@ 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"`
}
func (args) Version() string {
diff --git a/doPlayback.go b/doPlayback.go
index 34a9557..94fd82d 100644
--- a/doPlayback.go
+++ b/doPlayback.go
@@ -7,6 +7,10 @@ import (
)
func doPlayback() {
+ if argv.Playback.Uuid != "" {
+ showChat(argv.Playback.Uuid)
+ return
+ }
log.Infof("Found %d chat topic(s) in the log.", len(me.chats.GetChats()))
fmt.Println("-------------------------------------------------")
@@ -35,3 +39,13 @@ func doPlayback() {
}
fmt.Println("-------------------------------------------------")
}
+
+func showChat(uuid string) {
+ chat := me.chats.FindByUuid(uuid)
+ if chat == nil {
+ log.Info("unknown uuid", uuid)
+ return
+ }
+ log.Info("uuid was found ok", uuid)
+ // TODO: show the chat entries here
+}