feat: updates

This commit is contained in:
2024-12-16 22:47:54 +08:00
parent 61804ab029
commit 4824e2329d

View File

@@ -79,8 +79,9 @@ impl Command for CommandImpl {
if json_output {
let mut json = BTreeMap::<&'_ str, String>::new();
json.insert("shared_secret_hex", dh_hex);
println!("{}", serde_json::to_string_pretty(&json).unwrap());
} else {
information!("Shared secret: {}", dh_hex);
}