string
Command
.cmdId
AsyncIterable
<{
stream
: "stdout"
| "stderr"
;
data
: string
;
}, any
, any
>
An async iterable of log entries from the command output.
Command
.logs
Promise
<CommandFinished
>
A CommandFinished instance with populated exit code.
Command
.wait
stdout
, stderr
, or both as a string.
NOTE: This may throw string conversion errors if the command does
not output valid Unicode.
Parameter | Type | Default value | Description |
---|---|---|---|
stream | "stdout" | "stderr" | "both" | "both" | The output stream to read: “stdout”, “stderr”, or “both”. |
Promise
<string
>
The output of the specified stream(s) as a string.
Command
.output
stdout
as a string.
NOTE: This may throw string conversion errors if the command does
not output valid Unicode.
Promise
<string
>
The standard output of the command.
Command
.stdout
stderr
as a string.
NOTE: This may throw string conversion errors if the command does
not output valid Unicode.
Promise
<string
>
The standard error output of the command.
Command
.stderr
Parameter | Type |
---|---|
signal? | Signal |
Promise
<void
>
Promise<void>
.
Command
.kill