0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 04:08:54 +02: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
console_cmd__mod__path(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)
console_cmd__mod(opt &out, const string_view &line)
{
auto avflist(mods::available());
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
{
mods::loaded(mod)? "\033[1;42m \033[0m" : " "
mods::loaded(mod)? "\033[1;32;42m+\033[0m" : " "
};
out << "[" << loadstr << "] " << mod << std::endl;
@ -440,6 +431,15 @@ console_cmd__mod__list(opt &out, const string_view &line)
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
console_cmd__mod__syms(opt &out, const string_view &line)
{