mirror of
https://github.com/matrix-construct/construct
synced 2024-12-29 00:44:17 +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;
|
||||
}
|
||||
|
||||
case hash("source"):
|
||||
{
|
||||
if(event.source)
|
||||
out << event.source << std::endl;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case hash("idx"):
|
||||
out << event_idx << std::endl;
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue