use std::env;
use anyhow::Context;
fn main() -> anyhow::Result<()> {
let cwd = env::current_dir().context("Failed to determine current directory")?;
let report = taskc::scan_directory(&cwd);
let html = taskc::render_html(&report);
let output_path = taskc::write_output(&cwd, &html)?;
println!(
"Generated {} tasks from {} markdown files: {}",
report.tasks.len(),
report.markdown_files_scanned,
output_path.display()
);
if !report.warnings.is_empty() {
println!("Warnings ({}):", report.warnings.len());
for warning in &report.warnings {
println!("- {warning}");
}
}
Ok(())
}