#clipboard #copy #file-content #tool #cli-tool #file-copy #cli

app cptc

A cli tool for copying file/s contents to your clipboard

2 releases

0.1.1 Feb 2, 2024
0.1.0 Feb 1, 2024

#798 in Command line utilities

39 downloads per month

MIT license

10KB
148 lines

Copy To Clipboard

cptc is a small helper CLI tool for quickly copying the contents of file/s to your systems clipboard.

Installation

You can install cptc from cargo

$ cargo install cptc

Usage

usage: cptc [OPTIONS] [FILE]...

A cli tool for copying file/s contents to your clipboard

Options:
  --help       -h      Print this menu and exit
  --version    -v      Print the version number and exit
  --verbouse   -v      Print what is copied
  --pause      -p      Pauses exiting of the program until ENTER is pressed

Wayland support

Currently on Wayland, the clipboard will be cleared when the program ends (A limitation of rust clipboard libraries). To overcome this use the --pause or -p flag to prevent the program closing before you've had a change to paste the contents of the file!

Dependencies

~0.4–13MB
~141K SLoC