mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +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)
|
||||
{
|
||||
out
|
||||
<< std::setw(24) << std::left << site->name() << ':'
|
||||
<< std::left << site->name() << ':'
|
||||
<< std::endl
|
||||
<< string_view{site->feature}
|
||||
<< std::endl
|
||||
<< "matchers: " << site->matchers
|
||||
<< std::endl
|
||||
<< "count: " << site->count
|
||||
<< std::endl
|
||||
<< "calls: " << site->calls
|
||||
<< std::endl
|
||||
<< "calling: " << site->calling
|
||||
<< std::endl
|
||||
<< std::endl
|
||||
;
|
||||
|
||||
for(const auto &hookp : site->hooks)
|
||||
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}
|
||||
<< std::endl
|
||||
;
|
||||
|
|
Loading…
Reference in a new issue