Skip to main content

run_cli

Function run_cli 

Source
pub fn run_cli(app: RanimApp)
Available on crate feature cmd-render and non-target_family=wasm only.
Expand description

Parse the process arguments and serve the preview, output, render, and inspect subcommands of this project binary:

ⓘ
use ranim::prelude::*;

fn main() {
    let mut app = App::new();
    app.add_plugins(scenes::ScenesPlugin);
    run_cli(app.build());
}

On a command failure the error is logged and the process exits with a non-zero status.