mod cli;
mod link_checker;
mod report;
mod scanner;
use anyhow::Result;
#[tokio::main]
async fn main() -> Result<()> {
let args = cli::parse_args();
let links = scanner::scan_directory(&args.directory, &args.file_types, &args.ignore_patterns)?;
println!("Found {} links to check...", links.len());
let results = link_checker::check_links(&links).await?;
report::generate_report(&results, &args.report_format, &args.directory)?;
Ok(())
}