feat: update version

This commit is contained in:
2023-10-19 23:24:03 +08:00
parent 94a6cf18b3
commit a66babb828
5 changed files with 63 additions and 32 deletions

View File

@@ -1,15 +1,15 @@
use clap::Args;
use rust_util::XResult;
use crate::util;
#[derive(Debug, Args)]
pub struct CmdVersion {}
pub fn version(_cmd_version: CmdVersion) -> XResult<()> {
println!(
"{} - v{}\n{}\n",
env!("CARGO_PKG_NAME"),
env!("CARGO_PKG_VERSION"),
env!("CARGO_PKG_DESCRIPTION")
"User-Agent: {}\n{}",
util::get_user_agent(),
env!("CARGO_PKG_DESCRIPTION"),
);
Ok(())
}