cortex-mem-cli 2.7.0

Command-line interface for Cortex Memory system
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use anyhow::Result;
use colored::Colorize;
use cortex_mem_tools::MemoryOperations;
use std::sync::Arc;

pub async fn execute(
    operations: Arc<MemoryOperations>,
    uri: &str,
) -> Result<()> {
    println!("{} Deleting memory: {}", "🗑️".bold(), uri.cyan());

    operations.delete(uri).await?;

    println!("{} Memory deleted successfully", "".green().bold());

    Ok(())
}