This is a simple implementation of OS X's pbpaste
utility in Rust
for Windows systems.
Because it's my first Rust program, it is probably full of horrible things.
To compile it, just run cargo build
. The executable will be in
target\debug\pbpaste.exe
.
Output plain-text clipboard content as UTF-8.
Usage:
pbpaste [--dos|--unix]
Options:
-h --help Show this screen.
--dos Output DOS (CR+LF) line endings.
--unix Output Unix (LF) line endings (default).
- There is no analogous
pbcopy
tool because Windows already comes with one calledclip.exe
.