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:
parent
ef740d339b
commit
30ab2eb9d7
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue