clipboard
A simple command line tool to Paste PNG into files, much like pbpaste does for text.
Save clipboard to local
If clipboard content is PNG, save it userhome directory named "image.png". If not, do no thing. Only support 10.13+
Build
$ swift build
Usage
$ ./clipboard [ -o /path/to/image.png ]
$ ./clipboard -h
Usage: ./clipboard [options]
-o, --out:
File path you want to save PNG to, default: ./clipboard.png
-h, --help:
Prints a help message.
TODO
- [] Judge clipboard content
- support command line argvs, such as save-dir, output-name