(args, options = {})
| 1763 | } |
| 1764 | |
| 1765 | function simdeckText(args, options = {}) { |
| 1766 | return runText(simdeck, ["--server-url", serverUrl, ...args], { |
| 1767 | timeoutMs: options.timeoutMs ?? 120_000, |
| 1768 | maxElapsedMs: options.maxElapsedMs, |
| 1769 | input: options.input, |
| 1770 | env: { HOME: tempRoot, ...(options.env ?? {}) }, |
| 1771 | }); |
| 1772 | } |
| 1773 | |
| 1774 | function runJson(command, args, options = {}) { |
| 1775 | return JSON.parse(runText(command, args, options)); |
no test coverage detected