Skip to content

Commit

Permalink
nydusctl: fix build version info
Browse files Browse the repository at this point in the history
Signed-off-by: Yadong Ding <[email protected]>
  • Loading branch information
Desiki-high authored and imeoer committed Sep 20, 2024
1 parent 742954e commit 37a7b96
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bin/nydusctl/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,15 @@ use commands::{
CommandBackend, CommandCache, CommandDaemon, CommandFsStats, CommandMount, CommandUmount,
};
use nydus::get_build_time_info;
use nydus_api::BuildTimeInfo;

lazy_static! {
static ref BTI: BuildTimeInfo = get_build_time_info().1;
static ref BTI_STRING: String = get_build_time_info().0;
}

#[tokio::main]
async fn main() -> Result<()> {
let app = Command::new("A client to query and configure the nydusd daemon\n")
.version(BTI.package_ver.as_str())
.version(BTI_STRING.as_str())
.author(crate_authors!())
.arg(
Arg::new("sock")
Expand Down

0 comments on commit 37a7b96

Please sign in to comment.