Skip to main content

run

Function run 

Source
pub fn run<'a>(args: &Args, arena: &'a Bump) -> Result<(), Error<'a>>
Expand description

Runs the Orrery CLI application.

Loads configuration, parses the input .orr file, renders the resulting diagram to SVG, and writes it to the output path.

§Arguments

  • args - Command-line arguments.
  • arena - Bump arena for source text allocation. Must outlive the returned error, since Error::Parse borrows from it.

§Errors

Returns Error::Parse for syntax/validation errors with rich diagnostics, or Error::Render for I/O, layout, or export errors.