Home Explore Blog CI



docker

content/reference/api/extensions-sdk/ExecResultV0.md
c0ddd0336ecba5d603f011a827354396b9d00be31adff6ac000000030000043e
---
title: "Interface: ExecResultV0"
description: Docker extension API reference
keywords: Docker, extensions, sdk, API, reference
aliases:
 - /desktop/extensions-sdk/dev/api/reference/interfaces/ExecResultV0/
 - /extensions/extensions-sdk/dev/api/reference/interfaces/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.

Chunks
a864002f (1st chunk of `content/reference/api/extensions-sdk/ExecResultV0.md`)
Title: ExecResultV0 Interface Properties and Methods
Summary
This section describes the properties and methods associated with the `ExecResultV0` interface, which seems to be part of a Docker extension API. The properties `cmd`, `killed`, `signal`, `code`, `stdout`, and `stderr` provide information about the execution result. The methods `lines`, `parseJsonLines`, and `parseJsonObject` offer functionalities to parse the standard output as lines, JSON lines, or a JSON object, respectively.