MCPcopy Create free account
hub / github.com/diillson/chatcli / showMemoryTopics

Method showMemoryTopics

cli/memory_command.go:352–373  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

350}
351
352func (cli *ChatCLI) showMemoryTopics() {
353 mgr := cli.memoryStore.Manager()
354 topics := mgr.Topics.GetAll()
355
356 fmt.Println()
357 fmt.Println(colorize(" "+i18n.T("mem.cmd.topics.title"), ColorCyan+ColorBold))
358 fmt.Println(colorize(" ─────────────────────────────────────────", ColorGray))
359
360 if len(topics) == 0 {
361 fmt.Println(colorize(" "+i18n.T("mem.cmd.topics.empty"), ColorGray))
362 fmt.Println()
363 return
364 }
365
366 for _, t := range topics {
367 lastSeen := t.LastSeen.Format("2006-01-02")
368 fmt.Printf(" %s %s\n",
369 colorize(t.Name, ColorYellow),
370 colorize(i18n.T("mem.cmd.topics.mentions_last", t.Mentions, lastSeen), ColorGray))
371 }
372 fmt.Println()
373}
374
375func (cli *ChatCLI) showMemoryProjects() {
376 mgr := cli.memoryStore.Manager()

Callers 1

handleMemoryCommandMethod · 0.95

Calls 4

TFunction · 0.92
colorizeFunction · 0.85
ManagerMethod · 0.80
GetAllMethod · 0.45

Tested by

no test coverage detected