// 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 markers = find_markers(&config)?; println!("{markers}"); let _issues = fetch_open_issues(&config).await; // TODO: loop over list of expected issues and drop any where they do exist and are open // TODO: if remaining list is not empty - add all to error list // // TODO: if error list is empty - exit okay // TODO: if error list is not empty - log erros and exit not okay Ok(()) }