(bash: Bash, timeoutMs: number)
| 157 | } |
| 158 | |
| 159 | function createTimeoutBash(bash: Bash, timeoutMs: number) { |
| 160 | return { |
| 161 | async exec(command: string) { |
| 162 | return withTimeout(bash.exec(command), timeoutMs, command); |
| 163 | }, |
| 164 | fs: bash.fs, |
| 165 | }; |
| 166 | } |
| 167 | |
| 168 | function truncateOutput(output: string): string { |
| 169 | if (output.length <= MAX_OUTPUT_CHARS) return output; |
no outgoing calls
no test coverage detected