use anyhow::Result;
use concept_analyzer::analyze_repository;
use std::path::Path;
#[tokio::main]
async fn main() -> Result<()> {
env_logger::init();
let repo_path = Path::new(".");
let s3_url = analyze_repository(
repo_path,
"my-bucket",
"temp/analysis.json",
std::env::var("LLM_API_KEY")?,
Some(4),
)
.await?;
println!("Analysis published to: {}", s3_url);
show_example_processing();
Ok(())
}
fn show_example_processing() {
println!("\nExample of processing the output:");
println!("1. Generate architecture diagrams from concept relationships");
println!("2. Create task tickets from rebuild instructions");
println!("3. Identify security concerns in critical gaps");
println!("4. Build dependency graphs from the build order");
println!("5. Generate API documentation from interfaces");
}