Registry / utility / cli-clipboard

cli-clipboard

JSON →
library0.4.0rscratesunverified

A cross-platform library for getting and setting the contents of the OS-level clipboard.

# Cargo.toml [dependencies] cli-clipboard = "0.4.0"
INSTALL
IMPORT
SIG · CLI-CLIPBOARD
C
cli-clipboard
utilityrustv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ClipboardContext
✓ use cli_clipboard::ClipboardContext;

Set and get clipboard contents.

use cli_clipboard::{ClipboardContext, ClipboardProvider}; fn main() { let mut ctx = ClipboardContext::new().unwrap(); ctx.set_contents("Hello, world!".to_owned()).unwrap(); let content = ctx.get_contents().unwrap(); println!("Clipboard: {}", content); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
cli-clipboard — cargo add cli-clipboard · libregistry