Skip to content

Commit

Permalink
get version from cargo metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonzx committed Jan 21, 2023
1 parent 3277d8d commit 9843997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/terminal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 9843997

Please sign in to comment.