feat: print envelop kids
This commit is contained in:
@@ -51,6 +51,8 @@ pub fn encrypt(cmd_encrypt: CmdEncrypt) -> XResult<()> {
|
||||
let envelops = config.find_envelops(&cmd_encrypt.profile)?;
|
||||
if envelops.is_empty() { return simple_error!("Cannot find any valid envelops"); }
|
||||
debugging!("Found envelops: {:?}", envelops);
|
||||
let envelop_tkids: Vec<_> = envelops.iter().map(|e| format!("{}:{}", e.r#type.get_name(), e.kid)).collect();
|
||||
information!("Matched {} envelop(s): \n- {}", envelops.len(), envelop_tkids.join("\n- "));
|
||||
|
||||
debugging!("Cmd encrypt: {:?}", cmd_encrypt);
|
||||
for path in &cmd_encrypt.paths {
|
||||
|
||||
@@ -83,7 +83,6 @@ impl TinyEncryptConfig {
|
||||
if e1.kid > e2.kid { return Ordering::Greater; }
|
||||
Ordering::Equal
|
||||
});
|
||||
debugging!("Found envelopes: {:#?}", envelops);
|
||||
Ok(envelops)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user