From 80bc6236d582a3d8fd44a9589b7cde2925fab99b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 3 Mar 2019 13:26:00 -0800 Subject: [PATCH] modules/console: Add milliseconds epoch to date cmd output; fix key create cmd name. --- modules/console.cc | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/modules/console.cc b/modules/console.cc index e4685c880..f6a57a9a3 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -640,6 +640,7 @@ bool console_cmd__date(opt &out, const string_view &line) { out << ircd::time() << std::endl; + out << ircd::time() << std::endl; thread_local char buf[128]; const auto now{ircd::now()}; @@ -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 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 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) {