()
| 350 | } |
| 351 | |
| 352 | func (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 | |
| 375 | func (cli *ChatCLI) showMemoryProjects() { |
| 376 | mgr := cli.memoryStore.Manager() |
no test coverage detected