feat: v0.4.2, add --direct-print

This commit is contained in:
2023-10-16 23:57:24 +08:00
parent b4d9b4692b
commit 9db0cec508
6 changed files with 51 additions and 760 deletions

View File

@@ -8,6 +8,7 @@ use tabled::settings::Style;
use crate::config::TinyEncryptConfig;
use crate::consts::TINY_ENC_CONFIG_FILE;
use crate::util_envelop;
#[derive(Tabled, Eq)]
struct ConfigProfile {
@@ -130,7 +131,10 @@ fn config_profiles(cmd_version: &CmdConfig, config: &TinyEncryptConfig) -> XResu
let desc = envelop.desc.as_ref()
.map(|desc| format!(", Desc: {}", desc))
.unwrap_or_else(|| "".to_string());
ks.push(format!("{}, {}{}", envelop.r#type.get_name(), kid, desc));
ks.push(format!(
"{}, {}{}",
util_envelop::with_width_type(envelop.r#type.get_name()), kid, desc
));
}
}
}