0
0
Fork 0
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:
Jason Volk 2018-05-05 22:09:56 -07:00
parent ea42490b4e
commit 1bde28ac17

View file

@ -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;