MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / write_to_paste_buffer

Function write_to_paste_buffer

cmd2/clipboard.py:16–21  ·  view source on GitHub ↗

Copy text to the clipboard / paste buffer. :param txt: text to copy to the clipboard

(txt: str)

Source from the content-addressed store, hash-verified

14
15
16def write_to_paste_buffer(txt: str) -> None:
17 """Copy text to the clipboard / paste buffer.
18
19 :param txt: text to copy to the clipboard
20 """
21 pyperclip.copy(txt)

Callers 1

_restore_outputMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…