// use anyhow::Result; use init::init_config; use issues::fetch_open_issues; use scanner::find_markers; mod init; mod issues; mod model; mod patterns; mod scanner; #[cfg(test)] mod tests; #[tokio::main] async fn main() -> std::result::Result<(), Box> { Ok(run(kxio::network::Network::new_real()).await?) } async fn run(net: kxio::network::Network) -> Result<()> { println!("Forgejo TODO Checker!"); let config = init_config(net)?; let issues = fetch_open_issues(&config).await?; let markers = find_markers(&config, issues)?; println!("{markers}"); // TODO: loop over markers, logging any that are invalid or closed. // TODO: if we logged any, then exit as and error Ok(()) }