0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 16:34:13 +01:00

modules/console: Use pretty output for refs cmd.

This commit is contained in:
Jason Volk 2019-02-08 03:17:24 -08:00
parent ef740d339b
commit 30ab2eb9d7

View file

@ -5841,6 +5841,14 @@ console_cmd__event__refs(opt &out, const string_view &line)
refs.for_each([&out](const m::event::idx &idx)
{
const m::event::fetch event
{
idx, std::nothrow
};
if(!event.valid)
return true;
out << idx
<< " " << m::event_id(idx)
<< std::endl;