#image #cloudflare #local-file #cli #authentication

app shot

Simple CLI that upload images to Cloudflare Image, either from clipboard, or local file

3 releases

0.1.2 Jan 7, 2023
0.1.1 Dec 24, 2021
0.1.0 Dec 23, 2021

#38 in #local-file

MIT license

24KB
544 lines

Shot

Simple CLI that uploads images to Cloudflare Image, either from the system clipboard, or a local file.

Install

Install from crates.io.

cargo install shot

Usage

shot

USAGE:
    shot [OPTIONS] [SUBCOMMAND]

OPTIONS:
    -d, --dry-run    Preview the command without perform any actions
    -h, --help       Print help information

SUBCOMMANDS:
    auth      Auth of Cloudflare API. Currently only supports account_id + token pair
    help      Print this message or the help of the given subcommand(s)
    paste     Upload image in clipboard to Cloudflare Image
    upload    Encode local images to PNG and upload to Cloudflare Images. For all supported
              image format, see `https://docs.rs/image/latest/image/codecs/index.html#supported-
              formats`

Dependencies

~17–31MB
~472K SLoC