mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/console: Add an intuitive sync command.
This commit is contained in:
parent
39164d94b8
commit
9007f651ed
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue