merman-cli 0.7.0

CLI to parse/layout/render Mermaid diagrams to SVG/PNG/JPG/PDF/ASCII/Unicode (headless).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod cli;
mod commands;
mod config;
mod error;
mod io;
mod markdown;
mod render;

use clap::Parser;

fn main() {
    let cli = cli::Cli::parse();
    if let Err(err) = commands::run(cli) {
        eprintln!("{err}");
        std::process::exit(1);
    }
}