use clap::CommandFactory; #[path = "src/cli.rs"] mod cli; fn main() -> std::io::Result<()> { let out_dir = std::path::PathBuf::from("docs"); let cmd = cli::Cli::command(); let man = clap_mangen::Man::new(cmd); let mut buffer: Vec = Default::default(); man.render(&mut buffer)?; std::fs::write(out_dir.join("openapi-to-hurl.1"), buffer)?; Ok(()) }