mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 07:50:57 +01:00
modules/console: Add event cmd idx argument.
This commit is contained in:
parent
7d64e6323b
commit
e586e22007
1 changed files with 4 additions and 0 deletions
|
@ -1600,6 +1600,10 @@ console_cmd__event(opt &out, const string_view &line)
|
||||||
case hash("raw"):
|
case hash("raw"):
|
||||||
out << json::object{buf} << std::endl;
|
out << json::object{buf} << std::endl;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
case hash("idx"):
|
||||||
|
out << m::event::fetch::index(event) << std::endl;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
out << pretty(event) << std::endl;
|
out << pretty(event) << std::endl;
|
||||||
|
|
Loading…
Reference in a new issue