MCPcopy Index your code
hub / github.com/ZToolsCenter/ZTools / copyToClipboard

Method copyToClipboard

src/main/api/renderer/system.ts:67–74  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

65 }
66
67 private async copyToClipboard(text: string): Promise<void> {
68 try {
69 clipboard.writeText(text)
70 } catch (error) {
71 console.error('[System] 复制到剪贴板失败:', error)
72 throw error
73 }
74 }
75
76 private async openTerminal(path: string): Promise<void> {
77 try {

Callers 1

setupIPCMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected