0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-05 10:08:36 +02:00

modules/console: Add milliseconds epoch to date cmd output; fix key create cmd name.

This commit is contained in:
Jason Volk 2019-03-03 13:26:00 -08:00
parent 69210c64be
commit 80bc6236d5

View file

@ -640,6 +640,7 @@ bool
console_cmd__date(opt &out, const string_view &line)
{
out << ircd::time() << std::endl;
out << ircd::time<milliseconds>() << std::endl;
thread_local char buf[128];
const auto now{ircd::now<system_point>()};
@ -4810,21 +4811,6 @@ console_cmd__crt(opt &out, const string_view &line)
return true;
}
bool
console_cmd__crt__create(opt &out, const string_view &line)
{
using prototype = void (const m::event &);
static mods::import<prototype> create_my_key
{
"s_keys", "create_my_key"
};
create_my_key({});
out << "done" << std::endl;
return true;
}
//
// key
//
@ -4840,6 +4826,21 @@ console_cmd__key(opt &out, const string_view &line)
return true;
}
bool
console_cmd__key__create(opt &out, const string_view &line)
{
using prototype = void (const m::event &);
static mods::import<prototype> create_my_key
{
"s_keys", "create_my_key"
};
create_my_key({});
out << "done" << std::endl;
return true;
}
bool
console_cmd__key__get(opt &out, const string_view &line)
{