feat: v1.9.14, enhance temporary keys
This commit is contained in:
@@ -76,7 +76,13 @@ pub fn config(cmd_config: CmdConfig) -> XResult<()> {
|
||||
}
|
||||
|
||||
if cmd_config.temporary_key {
|
||||
for envelop in &config.envelops {
|
||||
let envelops;
|
||||
if cmd_config.profile.is_some() || cmd_config.key_filter.is_some() {
|
||||
envelops = config.find_envelops(&cmd_config.profile, &cmd_config.key_filter)?;
|
||||
} else {
|
||||
envelops = config.find_envelops(&Some("ALL".to_string()), &None)?
|
||||
}
|
||||
for envelop in envelops {
|
||||
let k = serialize_config_envelop(envelop);
|
||||
println!("{}", k);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user