Expand description
Get text from clipboard or stdin.
This crate provides a single function [get] that reads text from the system clipboard
(if running in a terminal) or stdin (if piped). Returns trimmed text and optionally a
Clipboard instance for further operations.
§Features
Enable exactly one feature:
sync- Synchronous APIasync- Asynchronous API (requires tokio runtime)
Structs§
- Clipboard
- A wrapper around the system clipboard.
Enums§
- Error
- Errors that can occur when reading from stdin or clipboard.