Skip to main content

Module share

Module share 

Source
Expand description

Frictionless share helpers: copy text to the OS clipboard and open files/URLs.

Pure process orchestration — no third-party crates. Every function degrades gracefully (returns false) when no suitable tool exists, so callers can fall back to printing the text. Used by the Wrapped share flow (gain --copy / --open).

Functions§

copy_to_clipboard
Copies text to the system clipboard. Returns true on success.
open_in_browser
Opens target (a file path or URL) in the default handler. Returns true if the launcher process spawned successfully (not whether the GUI actually opened).