-
-
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.
feat: Add argument for specifying output path.
- Loading branch information
1 parent
a09d27d
commit 84014a9
Showing
7 changed files
with
47 additions
and
21 deletions.
There are no files selected for viewing
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,14 +1,23 @@ | ||
[package] | ||
name = "glassy" | ||
authors = ["decipher", "Rhelvetican"] | ||
version = "0.1.1" | ||
version = "0.1.2" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
anyhow = "1" | ||
image = "0.25" | ||
imageproc = "0.24" | ||
thiserror = "1.0" | ||
clap = { version = "4.5", features = ["derive"] } | ||
libblur = "0.9" | ||
log = "0.4" | ||
env_logger = "0.11" | ||
|
||
[profile.release] | ||
lto = "fat" | ||
opt-level = 3 | ||
codegen-units = 1 | ||
rpath = true | ||
debug = false | ||
panic = "abort" |
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
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,19 +1,19 @@ | ||
use clap::Parser; | ||
|
||
use crate::utils::{cli::CliArgs, proc_image}; | ||
use std::process; | ||
use clap::Parser; | ||
use log::error; | ||
use std::process::exit; | ||
|
||
mod utils; | ||
mod error; | ||
mod logger; | ||
mod utils; | ||
|
||
fn main() { | ||
let cli_args: CliArgs = CliArgs::parse(); | ||
|
||
logger::init_logger(&cli_args); | ||
|
||
if let Err(e) = proc_image(cli_args) { | ||
log::error!("{e}"); | ||
process::exit(1); | ||
error!("{e}"); | ||
exit(1); | ||
}; | ||
} |
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