use anyhow::Result;
pub fn handle(path: String, force: bool) -> Result<()> {
if force {
println!("bctx index: forcing full re-index of {path}");
} else {
println!("bctx index: incremental index of {path}");
}
let result = prism::build_index(&path)?;
println!(
"Indexed {} files, {} symbols in {}ms",
result.files_parsed, result.symbols_extracted, result.duration_ms
);
Ok(())
}