Bumped up the version number
parent
c2466abf83
commit
92935c7d44
|
@ -426,7 +426,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "git-heatmap"
|
name = "git-heatmap"
|
||||||
version = "0.1.0"
|
version = "1.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
|
|
@ -2,7 +2,7 @@ cargo-features = ["codegen-backend"]
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "git-heatmap"
|
name = "git-heatmap"
|
||||||
version = "0.1.0"
|
version = "1.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Wynd <wyndftw@proton.me>"]
|
authors = ["Wynd <wyndftw@proton.me>"]
|
||||||
description = "A simple and customizable heatmap for git repos"
|
description = "A simple and customizable heatmap for git repos"
|
||||||
|
@ -30,4 +30,4 @@ incremental = true
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
strip = true
|
strip = true
|
||||||
lto = true
|
lto = true
|
||||||
codegen-units = 1
|
codegen-units = 1
|
|
@ -63,12 +63,8 @@ struct Author {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
// clear_screen();
|
|
||||||
|
|
||||||
let args = CliArgs::parse();
|
let args = CliArgs::parse();
|
||||||
|
|
||||||
// dbg!(&args);
|
|
||||||
|
|
||||||
CHAR.set(args.char).unwrap();
|
CHAR.set(args.char).unwrap();
|
||||||
COLOR_LOGIC.set(args.counting.clone()).unwrap();
|
COLOR_LOGIC.set(args.counting.clone()).unwrap();
|
||||||
let color_map = match args.color_scheme {
|
let color_map = match args.color_scheme {
|
||||||
|
@ -135,10 +131,6 @@ fn get_color(val: i32, high: i32) -> usize {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn clear_screen() {
|
|
||||||
print!("\x1b[2J\x1b[1;1H");
|
|
||||||
}
|
|
||||||
|
|
||||||
fn get_char() -> char {
|
fn get_char() -> char {
|
||||||
*CHAR.get_or_init(|| '▩')
|
*CHAR.get_or_init(|| '▩')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue