Added version string

pull/2/head
Mark 2023-03-27 10:59:11 -07:00
parent 701c8435fb
commit b3e0cd6699
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
3 changed files with 12 additions and 6 deletions

2
Cargo.lock generated
View File

@ -10,7 +10,7 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "calc"
version = "0.1.0"
version = "0.0.1"
dependencies = [
"signal-hook",
"termion",

View File

@ -1,6 +1,6 @@
[package]
name = "calc"
version = "0.1.0"
version = "0.0.1"
edition = "2021"
[profile.release]

View File

@ -41,13 +41,19 @@ fn draw_greeter(stdout: &mut RawTerminal<std::io::Stdout>) -> Result<(), std::io
{b}@@ @{a}# ##\r\n \
{b}@ @@{a}## #\r\n \
{b} @@@@@@ {a} ###### {r}\r\n \
\n {t}Daisy{r} {v}v0.0.0{r}\r\n\n",
\n {t}Daisy{r} {v}v{ver}{r}\r\n\n",
r = format!("{}{}", color::Fg(color::Reset), style::Reset),
// Icon colors
a = color::Fg(color::Magenta),
b = color::Fg(color::White),
t = format!("{}{}", color::Fg(color::White), style::Bold),
v = format!("{}{}", color::Fg(color::White), style::Italic),
r = format!("{}{}", color::Fg(color::Reset), style::Reset),
// Title format
t = format!("{}{}", color::Fg(color::White), style::Bold),
// Version
v = format!("{}{}", color::Fg(color::White), style::Italic),
ver = env!("CARGO_PKG_VERSION"),
)?;
return Ok(());