MCPcopy Index your code
hub / github.com/codeaashu/claude-code / writeClipboardViaPbcopy

Function writeClipboardViaPbcopy

src/utils/computerUse/executor.ts:80–88  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

78}
79
80async 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
90type Input = ReturnType<typeof requireComputerUseInput>
91

Callers 1

typeViaClipboardFunction · 0.85

Calls 1

execFileNoThrowFunction · 0.85

Tested by

no test coverage detected