repopilot 0.12.0

Local-first CLI for repository audit, architecture risk detection, baseline tracking, and CI-friendly code review.
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(())
        }
    }
}