Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 709 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 709 Bytes

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