Skip to main content

run

Function run 

Source
pub fn run(
    build_result: &BuildResult,
    args: &[String],
) -> Result<i32, BuildError>
Expand description

Execute a built LOGOS project.

Spawns the compiled binary and waits for it to complete. Returns the process exit code.

§Arguments

  • build_result - Result from a previous build call

§Returns

The exit code of the process (0 for success, non-zero for failure).

§Errors

Returns BuildError::Io if the process cannot be spawned.