CLI command
jeden copy
Hand an exact payload to the operator's clipboard from outside an interactive session.
Exact invocation#
jeden copy <text> | jeden copy - [--json]Inputs and options#
- Required: the text to copy as positional words, or a single
-to read the payload from standard input. - Optional:
--jsonreturns the copied byte count and the writer that accepted the payload.
Output and state effect#
Writes the payload with the first clipboard writer this platform offers (pbcopy, then the Windows and Wayland/X11 writers), the same order /copy uses inside a session. Nothing is stored, logged or sent anywhere else.
Refusals and boundaries#
- No text is refused as
copy requires the text to hand over, or - to read the payload from stdin. copy -with a terminal on standard input is refused ascopy - reads the payload from stdin, and stdin is a terminal here.- An empty or whitespace payload is refused rather than replacing the clipboard with nothing.