본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Interface: ExecResultV0

원문 보기 위키 갱신

Docker Desktop 확장 SDK의 ExecResultV0 인터페이스예요. 백엔드 v0 API가 반환하는 명령 실행 결과를 담아요. 향후 제거될 수 있어요.

출처: 문서

본문

Interface: ExecResultV0

속성

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

메서드

lines

▸ lines(): string[]

Split output lines.

반환값

string[]

The list of lines.

parseJsonLines

▸ parseJsonLines(): any[]

Parse each output line as a JSON object.

반환값

any[]

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

parseJsonObject

▸ parseJsonObject(): any

Parse a well-formed JSON output.

반환값

any

The JSON object.

더 알아보기