Added version string

This commit is contained in:
2023-03-27 10:59:11 -07:00
parent 701c8435fb
commit b3e0cd6699
3 changed files with 12 additions and 6 deletions

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(());