(args: string[], cwd: string)
| 5 | const DEFAULT_GH_TIMEOUT_MS = 30_000; |
| 6 | |
| 7 | export interface GhExecOptions { |
| 8 | /** Bound a spawned `gh` process so passive review reads cannot hang the local UI. */ |
| 9 | timeoutMs?: number; |
| 10 | /** Send structured mutation input without exposing large bodies in argv. */ |
| 11 | stdin?: string; |
| 12 | } |
| 13 | |
| 14 | async function execGh(args: string[], cwd: string, options: GhExecOptions): Promise<string> { |
| 15 | if (options.stdin !== undefined) { |
| 16 | return await new Promise((resolve, reject) => { |
| 17 | let stdinError: Error | undefined; |
no outgoing calls
no test coverage detected