Home > @momentum-design/common > Execute > run
Execute.run() method
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Run the provided command in a child process.
Signature:
static run(command: string): Promise<string>;
Parameters
Parameter | Type | Description |
---|---|---|
command | string | String command to execute as a child process. |
Returns:
Promise<string>
- Promise that resolves to the executed child process’ results.
Remarks
This command can only accept a single string primative and runs the child process as an external thread. This method doesn’t provide any hooks for actively intercepting CLI output, and provides a single buffer as a response.