function

runRidu

function runRidu(arguments_: any): Promise<any>

Download or reuse the matching native Ridu binary, run it with inherited stdio, and resolve its exit code.

Source packages/cli/src/run.js:11

@param arguments_
CLI arguments passed to the native Ridu executable.
@returns
The native process exit code, using 1 when the process exits without a code.

The launcher forwards SIGINT and SIGTERM while the child is running and inherits the parent process standard streams.

Example

ts
import { runRidu } from '@riducms/cli/run';

process.exitCode = await runRidu(['doctor']);

Related guides