vimanam 1.7.0

OpenAPI/Swagger to Markdown documentation generator with grouping, filtering, and detail levels for docs and LLM context
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use clap::Parser;
use std::io::stdout;
use std::process::ExitCode;

fn main() -> ExitCode {
    env_logger::init();
    let cli = vimanam::cli::Cli::parse();
    match vimanam::cli::run(&cli, &mut stdout(), &mut |notice| eprintln!("{notice}")) {
        Ok(true) => ExitCode::from(3),
        Ok(false) => ExitCode::SUCCESS,
        Err(err) => {
            eprintln!("Error: {err:#}");
            ExitCode::from(1)
        }
    }
}