mirror of
https://github.com/matrix-construct/construct
synced 2024-11-14 05:51:10 +01:00
modules/console: Add argument to show event's referenced json::object if available.
This commit is contained in:
parent
8c5b1f283f
commit
916afec37b
1 changed files with 8 additions and 0 deletions
|
@ -5463,6 +5463,14 @@ console_cmd__event(opt &out, const string_view &line)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case hash("source"):
|
||||||
|
{
|
||||||
|
if(event.source)
|
||||||
|
out << event.source << std::endl;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
case hash("idx"):
|
case hash("idx"):
|
||||||
out << event_idx << std::endl;
|
out << event_idx << std::endl;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue