feat: v1.4.2, add latest user agent in meta

This commit is contained in:
2023-12-10 10:48:16 +08:00
parent c1debe5262
commit 72d89b32ab
5 changed files with 10 additions and 3 deletions

View File

@@ -76,6 +76,9 @@ pub fn info_single(path: &PathBuf, cmd_info: &CmdInfo) -> XResult<()> {
infos.push(format!("{}: Version: {}, Agent: {}",
header("File summary"), meta.version, meta.user_agent)
);
if let Some(latest_user_agent) = meta.latest_user_agent {
infos.push(format!("{}: {}", header("Latest user agent"), latest_user_agent))
}
let now_millis = util_time::get_current_millis() as u64;
let fmt = simpledateformat::fmt(DATE_TIME_FORMAT).unwrap();