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

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.


版本号 #2
由 壳壳虫 创建于 2026-10-31 19:41:47 UTC
由 壳壳虫 更新于 2026-10-31 19:41:48 UTC