Skip to content

A simple cli to Paste PNG into files, much like pbpaste does for text.

License

Notifications You must be signed in to change notification settings

PoplarYang/clipboard

Repository files navigation

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

About

A simple cli to Paste PNG into files, much like pbpaste does for text.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages