feat: update comments

This commit is contained in:
2024-01-11 00:26:13 +08:00
parent 27c6bee4ea
commit c093f865ab

View File

@@ -743,11 +743,12 @@ pub fn select_envelop<'a>(meta: &'a TinyEncryptMeta, key_id: &Option<String>, co
}
}
// TODO optimize select for exec-env
envelops.iter().enumerate().for_each(|(i, envelop)| {
println_ex!("#{} {}", i + 1, util_envelop::format_envelop(envelop, config));
});
let envelop_number = util::read_number("Please select an envelop:", 1, envelops.len());
let selected_envelop = &envelops[envelop_number - 1];
if silent {
debugging!("Selected envelop: #{} {}", envelop_number, selected_envelop.r#type.get_upper_name());