mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 16:52:44 +01:00
modules/console: Output additional information in hook list cmd.
This commit is contained in:
parent
3bd3173db0
commit
ea420994eb
1 changed files with 13 additions and 3 deletions
|
@ -2083,17 +2083,27 @@ console_cmd__hook__list(opt &out, const string_view &line)
|
||||||
for(const auto &site : m::hook::base::site::list)
|
for(const auto &site : m::hook::base::site::list)
|
||||||
{
|
{
|
||||||
out
|
out
|
||||||
<< std::setw(24) << std::left << site->name() << ':'
|
<< std::left << site->name() << ':'
|
||||||
<< std::endl
|
<< std::endl
|
||||||
<< string_view{site->feature}
|
<< string_view{site->feature}
|
||||||
<< std::endl
|
<< std::endl
|
||||||
|
<< "matchers: " << site->matchers
|
||||||
|
<< std::endl
|
||||||
|
<< "count: " << site->count
|
||||||
|
<< std::endl
|
||||||
|
<< "calls: " << site->calls
|
||||||
|
<< std::endl
|
||||||
|
<< "calling: " << site->calling
|
||||||
|
<< std::endl
|
||||||
<< std::endl
|
<< std::endl
|
||||||
;
|
;
|
||||||
|
|
||||||
for(const auto &hookp : site->hooks)
|
for(const auto &hookp : site->hooks)
|
||||||
out
|
out
|
||||||
<< std::setw(4) << std::right << hookp->id()
|
<< (hookp->registered? '+' : '-')
|
||||||
<< " " << (hookp->registered? '+' : '-')
|
<< " " << std::setw(4) << std::left << hookp->id()
|
||||||
|
<< " " << std::setw(8) << std::right << hookp->calls
|
||||||
|
<< " " << std::setw(3) << std::right << hookp->calling
|
||||||
<< " " << string_view{hookp->feature}
|
<< " " << string_view{hookp->feature}
|
||||||
<< std::endl
|
<< std::endl
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in a new issue