0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 23:10:54 +01:00

modules/console: Make mod list the mod base cmd.

This commit is contained in:
Jason Volk 2018-04-14 00:51:30 -07:00
parent 367776ee2d
commit f4015c597e

View file

@ -410,16 +410,7 @@ console_cmd__conf__list(opt &out, const string_view &line)
// //
bool bool
console_cmd__mod__path(opt &out, const string_view &line) console_cmd__mod(opt &out, const string_view &line)
{
for(const auto &path : ircd::mods::paths)
out << path << std::endl;
return true;
}
bool
console_cmd__mod__list(opt &out, const string_view &line)
{ {
auto avflist(mods::available()); auto avflist(mods::available());
const auto b(std::make_move_iterator(begin(avflist))); const auto b(std::make_move_iterator(begin(avflist)));
@ -431,7 +422,7 @@ console_cmd__mod__list(opt &out, const string_view &line)
{ {
const auto loadstr const auto loadstr
{ {
mods::loaded(mod)? "\033[1;42m \033[0m" : " " mods::loaded(mod)? "\033[1;32;42m+\033[0m" : " "
}; };
out << "[" << loadstr << "] " << mod << std::endl; out << "[" << loadstr << "] " << mod << std::endl;
@ -440,6 +431,15 @@ console_cmd__mod__list(opt &out, const string_view &line)
return true; return true;
} }
bool
console_cmd__mod__path(opt &out, const string_view &line)
{
for(const auto &path : ircd::mods::paths)
out << path << std::endl;
return true;
}
bool bool
console_cmd__mod__syms(opt &out, const string_view &line) console_cmd__mod__syms(opt &out, const string_view &line)
{ {