function
runRidu
Download or reuse the matching native Ridu binary, run it with inherited stdio, and resolve its exit code.
Example
import { runRidu } from '@riducms/cli/run';
process.exitCode = await runRidu(['doctor']);Arguments
| Argument | Type | Description |
|---|---|---|
arguments_ | any | CLI 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>