diff options
| author | Jeff Carr <[email protected]> | 2025-08-21 22:27:16 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-21 22:27:16 -0500 |
| commit | 44f860caa01cb5f491856b22dfb835836595b37a (patch) | |
| tree | c27f3944c1adef182a1c38faef9a1908df10eb02 | |
| parent | a10b75d453c266764e4e74d64cf63e3902625d4a (diff) | |
trying to improve forgev0.0.2
| -rw-r--r-- | main.go | 27 |
1 files changed, 2 insertions, 25 deletions
@@ -31,17 +31,6 @@ var ARGNAME string = "gemini" // using this for now. triggers config save var configSave bool -/* -func getVersion(repo *gitpb.Repo, name string) string { - cmd := []string{"git", "describe", "--tags", "--always", name} - result, _ := repo.RunQuiet(cmd) - output := strings.Join(result.Stdout, "\n") - log.Info("cmd =", cmd, output) - - return strings.TrimSpace(output) -} -*/ - func main() { me = new(mainType) gui.InitArg() @@ -65,20 +54,8 @@ func main() { } if argv.Add != "" { - log.Info("add new conversation to protobuf", argv.Add) - pb := parseRichLog(argv.Add) - verifyUuids(pb) - all := pb.SortByUuid() - for all.Scan() { - chat := all.Next() - log.Info("NEW CHAT", chat.From, chat.Uuid) - if test := me.chats.FindByContentFile(chat.ContentFile); test != nil { - log.Info("NOT NEW CHAT", test.ContentFile) - continue - } - me.chats.AppendByUuid(chat) - } - pb.ConfigSave() + me.chats.AddFile(argv.Add) + me.chats.ConfigSave() okExit("") } |
