zorto 0.24.0

The AI-native static site generator (SSG) with executable code blocks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    if let Err(e) = zorto::run(std::env::args()) {
        if let Some(exit) = e.downcast_ref::<zorto::CliExit>() {
            std::process::exit(exit.code());
        }
        // `{:#}` flattens anyhow's error chain, so `.context(...)` frames
        // surface the underlying cause (e.g. "in foo.md: TOML parse error
        // at line 2, column 9...") instead of only the outermost context.
        eprintln!("Error: {e:#}");
        std::process::exit(1);
    }
}