feat: v0.4.2, add --direct-print
This commit is contained in:
@@ -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
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user