3 releases
0.1.1 | Mar 3, 2023 |
---|---|
0.1.0 | Feb 16, 2023 |
0.1.0-rc1 | Feb 8, 2023 |
#2 in #qr-code
87KB
422 lines
QRG CLI
QR Generate!
For more information on the project, take a look at the README and this website.
Installation
Note Make sure you have Cargo installed
Currently, as the crate is not published, you can only install it from source with
# From source
# cargo install --path cli
cargo install qrg
Usage
You can get the list of available commands as follows:
$ qrg -h
Generates QRCodes with a logo overlay.
Usage: qrg.exe [OPTIONS] <CONTENT>
Arguments:
<CONTENT> The text the qr code should contain
Options:
-d, --destination <DESTINATION> The filename the QR Code should be saved in [default: out.png]
-s, --size <SIZE> The size of the QR Code [default: 600]
-c, --bg-color <BG_COLOR> The background color of the QR Code (in hex) [default: FFFFFF]
-l, --logo <LOGO> The name of the logo to use in the overlay [default: google]
-h, --help Print help
-V, --version Print version
I will try to keep this outdated but you should run it for yourself just in case some command detail has changed.
Example Usage
Create a QR Code pointing to github.com
and dump the image to a file called tmp.png
.
qrg github.com -d tmp.png
Dependencies
~15–31MB
~399K SLoC