mirror of
https://github.com/matrix-construct/construct
synced 2024-09-29 04:08:54 +02:00
modules/console: Add event content argument for more detail.
This commit is contained in:
parent
ea42490b4e
commit
1bde28ac17
1 changed files with 8 additions and 0 deletions
|
@ -1977,6 +1977,14 @@ console_cmd__event(opt &out, const string_view &line)
|
|||
case hash("idx"):
|
||||
out << m::event::fetch::index(event) << std::endl;
|
||||
return true;
|
||||
|
||||
case hash("content"):
|
||||
{
|
||||
for(const auto &m : json::get<"content"_>(event))
|
||||
out << m.first << ": " << m.second << std::endl;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
out << pretty(event) << std::endl;
|
||||
|
|
Loading…
Reference in a new issue