-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from marcoradocchia/1-read-from-stdin
Added feature closing #1
- Loading branch information
Showing
7 changed files
with
85 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
[package] | ||
name = "qr-rs" | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
authors = ["Marco Radocchia <[email protected]"] | ||
edition = "2021" | ||
rust-version = "1.62.0" | ||
description = "Encode URLs or text into QR codes." | ||
description = "A CLI utility to encode URLs or text into QR codes in various formats and colors." | ||
readme = "README.md" | ||
repository = "https://github.com/marcoradocchia/qr-rs" | ||
license = "GPL-3.0-only" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,25 +73,44 @@ paru -S qr-rs-bin | |
[^1]: Currently only `x86_64` | ||
|
||
## Usage | ||
|
||
``` | ||
qr-rs 0.1.0 | ||
qr-rs 0.2.0 | ||
Marco Radocchia <[email protected]> | ||
Encode URLs or text into QR codes. | ||
A CLI utility to encode URLs or text into QR codes in various formats and colors. | ||
USAGE: | ||
qr [OPTIONS] <STRING> | ||
qr [OPTIONS] [STRING] | ||
ARGS: | ||
<STRING> String to encode | ||
OPTIONS: | ||
-b, --bg <BG> Foreground color (hex code) [default: #FFF] | ||
-f, --fg <FG> Background color (hex code) [default: #000] | ||
-h, --help Print help information | ||
-o, --output <OUTPUT> Output file (supported file extensions: jpeg, jpg, png, svg); omit to | ||
print QR code to console | ||
-s, --scale <SCALE> Scale factor (raster image output only) [default: 25] | ||
-V, --version Print version information | ||
-b, --bg <BG> | ||
Foreground color (hex code) [default: #FFF] | ||
-B, --border <BORDER> | ||
Border size (expressed in unit blocks) [default: 1] | ||
--error-correction-level <ERROR_CORRECTION_LEVEL> | ||
QR error orrection level [default: medium] [possible values: low, medium, quartile, | ||
high] | ||
-f, --fg <FG> | ||
Background color (hex code) [default: #000] | ||
-h, --help | ||
Print help information | ||
-o, --output <OUTPUT> | ||
Output file (supported file extensions: jpeg, jpg, png, svg); omit to print QR code to | ||
console | ||
-s, --scale <SCALE> | ||
Scale factor (raster image output only) [default: 25] | ||
-V, --version | ||
Print version information | ||
``` | ||
|
||
## Changelog | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ pub use clap::Parser; | |
use qrcodegen::QrCodeEcc; | ||
use std::path::PathBuf; | ||
|
||
/// Encode URLs or text into QR codes. | ||
/// A CLI utility to encode URLs or text into QR codes in various formats and colors. | ||
#[derive(Parser, Debug)] | ||
#[clap( | ||
author = "Marco Radocchia <[email protected]>", | ||
|
@@ -72,5 +72,5 @@ pub struct Args { | |
|
||
/// String to encode. | ||
#[clap(value_parser)] | ||
pub string: String, | ||
pub string: Option<String>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters