runOutput()
Home > @backstage/cli-common > runOutput
Runs a command and returns the stdout.
Signature:
function runOutput(args: string[], options?: RunOptions): Promise<string>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
args |
string[] | |
|
options |
(Optional) |
Returns:
Promise<string>
Remarks
On error, both stdout and stderr are attached to the error object as properties.