//! Entry point for the main `repo2markdown` binary.
//!
//! This binary parses command-line arguments, connects stdin/stdout, and delegates the actual
//! rendering pipeline to [`run::run`].

mod cli;
mod run;

use std::io;

use clap::Parser;

use crate::{cli::Cli, run::run};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let cli = Cli::parse();

    let stdin = io::stdin();
    let stdout = io::stdout();

    run(&cli, stdin.lock(), stdout.lock())
}
