1
0
mirror of https://github.com/docker/docs.git synced 2026-10-25 06:09:46 +03:00
Files
docs/content/reference/api/extensions-sdk/ExecResult.md
2024-09-09 11:24:49 +02:00

1.7 KiB

title, description, keywords, aliases
title description keywords aliases
Interface: ExecResult Docker extension API reference Docker, extensions, sdk, API, reference
/desktop/extensions-sdk/dev/api/reference/interfaces/ExecResult/
/extensions/extensions-sdk/dev/api/reference/interfaces/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