repopilot 0.16.0

Local-first CLI for reviewing Git changes, security boundaries, and blast radius before merge.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::cli::CacheCommands;
use repopilot::scan::cache::{cache_dir, clear_cache};

pub fn run(command: CacheCommands) -> Result<(), Box<dyn std::error::Error>> {
    match command {
        CacheCommands::Clear(options) => {
            let cache_path = cache_dir(&options.path);
            clear_cache(&options.path)?;
            println!("Cache cleared: {}", cache_path.display());
            Ok(())
        }
    }
}