function

runRidu

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

Example

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

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

Arguments

ArgumentTypeDescription
arguments_anyCLI arguments passed to the native Ridu executable.

Returns

The native process exit code, using 1 when the process exits without a code.

Promise<any>

How it works

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

Full signature

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

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

Related guides