Skip to main content

run

Function run 

Source
pub fn run() -> ExitCode
Expand description

Runs the originlm helper with this process’s arguments, standard streams and environment, and returns its exit code.

This is the whole originlm executable. It is a library function so a Rust host can ship the helper as a binary of its own Cargo workspace, built with its own lockfile and toolchain, instead of downloading or separately compiling a prebuilt one:

fn main() -> std::process::ExitCode {
    originlm_cli::run()
}

Nothing happens until it is called: it parses the command line and only then performs the selected command.