Files
docker-docs/desktop/extensions-sdk/dev/api/reference/interfaces/ExecResult.md
Guillaume Tardif efb9ca8caf Extension sdk update (#15687)
* Update extension SDK with new APIs for exec with ENV vars and CWD

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>

* Update extension SDK with new APIs for exec with ENV vars and CWD

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2022-09-20 09:46:44 +01:00

118 lines
1.5 KiB
Markdown

---
description: Docker extension API reference
keywords: Docker, extensions, sdk, API, reference
skip_read_time: true
---
# Interface: ExecResult
**`since`** 0.2.0
## Hierarchy
- [`RawExecResult`](RawExecResult.md)
**`ExecResult`**
## 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](RawExecResult.md).[cmd](RawExecResult.md#cmd)
___
### killed
`Optional` `Readonly` **killed**: `boolean`
#### Inherited from
[RawExecResult](RawExecResult.md).[killed](RawExecResult.md#killed)
___
### signal
`Optional` `Readonly` **signal**: `string`
#### Inherited from
[RawExecResult](RawExecResult.md).[signal](RawExecResult.md#signal)
___
### code
`Optional` `Readonly` **code**: `number`
#### Inherited from
[RawExecResult](RawExecResult.md).[code](RawExecResult.md#code)
___
### stdout
`Readonly` **stdout**: `string`
#### Inherited from
[RawExecResult](RawExecResult.md).[stdout](RawExecResult.md#stdout)
___
### stderr
`Readonly` **stderr**: `string`
#### Inherited from
[RawExecResult](RawExecResult.md).[stderr](RawExecResult.md#stderr)