0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-30 15:58:20 +02:00

modules/console: Add an intuitive sync command.

This commit is contained in:
Jason Volk 2019-07-07 18:36:07 -07:00
parent 39164d94b8
commit 9007f651ed

View file

@ -514,6 +514,18 @@ console_cmd__die__hard(opt &out, const string_view &line)
__builtin_unreachable();
}
bool
console_cmd__sync(opt &out, const string_view &line)
{
for(const auto &db : db::database::list)
{
sync(*db);
out << "synchronized " << name(*db) << '.' << std::endl;
}
return true;
}
//
// log
//