(text: string)
| 78 | } |
| 79 | |
| 80 | async function writeClipboardViaPbcopy(text: string): Promise<void> { |
| 81 | const { code } = await execFileNoThrow('pbcopy', [], { |
| 82 | input: text, |
| 83 | useCwd: false, |
| 84 | }) |
| 85 | if (code !== 0) { |
| 86 | throw new Error(`pbcopy exited with code ${code}`) |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | type Input = ReturnType<typeof requireComputerUseInput> |
| 91 |
no test coverage detected