(
args: string[],
options: { timeoutMs?: number; signal?: AbortSignal } = {}
)
| 1123 | } |
| 1124 | |
| 1125 | private async runCoderJsonCommand( |
| 1126 | args: string[], |
| 1127 | options: { timeoutMs?: number; signal?: AbortSignal } = {} |
| 1128 | ): Promise<string> { |
| 1129 | using proc = execFileAsync("coder", args, { |
| 1130 | timeoutMs: options.timeoutMs ?? 30_000, |
| 1131 | signal: options.signal, |
| 1132 | }); |
| 1133 | const { stdout } = await proc.result; |
| 1134 | return stdout; |
| 1135 | } |
| 1136 | |
| 1137 | /** |
| 1138 | * Get workspace status using control-plane query. |
no test coverage detected