mirror of https://github.com/rm-dr/daisy
Added version string
parent
701c8435fb
commit
b3e0cd6699
|
@ -10,7 +10,7 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "calc"
|
name = "calc"
|
||||||
version = "0.1.0"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"signal-hook",
|
"signal-hook",
|
||||||
"termion",
|
"termion",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "calc"
|
name = "calc"
|
||||||
version = "0.1.0"
|
version = "0.0.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
|
|
14
src/main.rs
14
src/main.rs
|
@ -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\n \
|
{b}@ @@{a}## #\r\n \
|
||||||
{b} @@@@@@ {a} ###### {r}\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),
|
a = color::Fg(color::Magenta),
|
||||||
b = color::Fg(color::White),
|
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(());
|
return Ok(());
|
||||||
|
|
Loading…
Reference in New Issue