feat: updates
This commit is contained in:
@@ -79,8 +79,9 @@ impl Command for CommandImpl {
|
|||||||
|
|
||||||
if json_output {
|
if json_output {
|
||||||
let mut json = BTreeMap::<&'_ str, String>::new();
|
let mut json = BTreeMap::<&'_ str, String>::new();
|
||||||
|
|
||||||
json.insert("shared_secret_hex", dh_hex);
|
json.insert("shared_secret_hex", dh_hex);
|
||||||
|
|
||||||
|
println!("{}", serde_json::to_string_pretty(&json).unwrap());
|
||||||
} else {
|
} else {
|
||||||
information!("Shared secret: {}", dh_hex);
|
information!("Shared secret: {}", dh_hex);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user