The Wayback Machine - https://web.archive.org/web/20260419233044/https://docs.docker.com/reference/api/extensions-sdk/ExecResult/
Share feedback
Answers are generated based on the documentation.

Interface: ExecResult

Since

0.2.0

Hierarchy

Methods

lines

â–¸ lines(): string[]

Split output lines.

Returns

string[]

The list of lines.


parseJsonLines

â–¸ parseJsonLines(): any[]

Parse each output line as a JSON object.

Returns

any[]

The list of lines where each line is a JSON object.


parseJsonObject

â–¸ parseJsonObject(): any

Parse a well-formed JSON output.

Returns

any

The JSON object.

Properties

cmd

• Optional Readonly cmd: string

Inherited from

RawExecResult.cmd


killed

• Optional Readonly killed: boolean

Inherited from

RawExecResult.killed


signal

• Optional Readonly signal: string

Inherited from

RawExecResult.signal


code

• Optional Readonly code: number

Inherited from

RawExecResult.code


stdout

• Readonly stdout: string

Inherited from

RawExecResult.stdout


stderr

• Readonly stderr: string

Inherited from

RawExecResult.stderr