Documentation
¶
Overview ¶
Package pasteimg is the host-side clipboard-image capture seam for the host→island image-paste bridge. Capturing an image off the system clipboard is inherently platform-specific, so the capture itself lives behind a single Capture() function with one implementation per OS (build-tagged files). The rest of the bridge — staging the bytes into the island's intake dir and injecting a `Read <path>` line — is platform-neutral and lives in the CLI.
When the running platform has no clipboard-image capture (or the clipboard holds no image), Capture returns ErrNoImage / ErrUnsupported and the caller degrades gracefully: the bridge is a convenience, never a hard dependency.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNoImage = errors.New("no image on the clipboard")
ErrNoImage is returned when the platform supports capture but the clipboard currently holds no image (e.g. it holds text, or is empty).
var ErrUnsupported = errors.New("clipboard image capture is not supported on this platform")
ErrUnsupported is returned on platforms without a clipboard-image capturer.