mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 09:40:12 +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)
|
refs.for_each([&out](const m::event::idx &idx)
|
||||||
{
|
{
|
||||||
|
const m::event::fetch event
|
||||||
|
{
|
||||||
|
idx, std::nothrow
|
||||||
|
};
|
||||||
|
|
||||||
|
if(!event.valid)
|
||||||
|
return true;
|
||||||
|
|
||||||
out << idx
|
out << idx
|
||||||
<< " " << m::event_id(idx)
|
<< " " << m::event_id(idx)
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
|
Loading…
Add table
Reference in a new issue