mirror of
https://github.com/matrix-construct/construct
synced 2024-06-25 21:38:18 +02:00
modules/console: Use pretty/pretty_oneline() in node key cmd.
This commit is contained in:
parent
06373848bc
commit
14774cf3e2
|
@ -11862,7 +11862,8 @@ console_cmd__node__keys(opt &out, const string_view &line)
|
|||
json::get<"content"_>(event)
|
||||
};
|
||||
|
||||
out << keys << std::endl;
|
||||
pretty_oneline(out, keys);
|
||||
out << std::endl;
|
||||
return --limit;
|
||||
}});
|
||||
|
||||
|
@ -11896,7 +11897,8 @@ console_cmd__node__key(opt &out, const string_view &line)
|
|||
json::get<"content"_>(event)
|
||||
};
|
||||
|
||||
out << key << std::endl;
|
||||
pretty(out, key);
|
||||
out << std::endl;
|
||||
});
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue