0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-29 07:18:20 +02:00

modules/console: Add event cmd idx argument.

This commit is contained in:
Jason Volk 2018-04-19 17:41:43 -07:00
parent 7d64e6323b
commit e586e22007

View file

@ -1600,6 +1600,10 @@ console_cmd__event(opt &out, const string_view &line)
case hash("raw"):
out << json::object{buf} << std::endl;
return true;
case hash("idx"):
out << m::event::fetch::index(event) << std::endl;
return true;
}
out << pretty(event) << std::endl;