From 9843997a05c3c1ded661e84fd3a6874ec72f88a3 Mon Sep 17 00:00:00 2001 From: Max S Date: Sat, 21 Jan 2023 22:57:19 +0300 Subject: [PATCH] get version from cargo metadata --- src/terminal/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/terminal/mod.rs b/src/terminal/mod.rs index 7ea0936..d89a2ac 100644 --- a/src/terminal/mod.rs +++ b/src/terminal/mod.rs @@ -43,8 +43,8 @@ enum StartScreens { impl Terminal { pub fn greet() { - let welcome_message = "Yak Swap CLI v0.1 (beta)"; - println!("{}", welcome_message); + const VERSION: &str = env!("CARGO_PKG_VERSION"); + println!("Yak Swap CLI v{}", VERSION); } pub fn settings_bar() {