1
0
mirror of https://github.com/docker/docs.git synced 2026-10-31 10:34:26 +03:00
Files
docs/content/desktop/extensions-sdk/dev/api/reference/interfaces/ExecResultV0.md
2024-01-15 17:29:17 +01:00

928 B

description, keywords
description keywords
Docker extension API reference Docker, extensions, sdk, API, reference

Interface: ExecResultV0

Properties

cmd

• Optional Readonly cmd: string


killed

• Optional Readonly killed: boolean


signal

• Optional Readonly signal: string


code

• Optional Readonly code: number


stdout

• Readonly stdout: string


stderr

• Readonly stderr: string

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.