feat: optimize info outputs

This commit is contained in:
2023-10-15 22:56:24 +08:00
parent f281cc15a2
commit ab2e850435
2 changed files with 17 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ pub fn info_single(path: &PathBuf, cmd_info: &CmdInfo) -> XResult<()> {
envelops.iter().enumerate().for_each(|(i, envelop)| {
infos.push(format!("{}: {}",
header(&format!("Envelop #{}", i + 1)),
util_envelop::format_envelop(envelop, &config)
util_envelop::format_envelop_with_type_with(envelop, &config, Some(10))
));
})
}