From 01f712453cadeeca299391940b3bc6f75c2e92ae Mon Sep 17 00:00:00 2001 From: kevans Date: Tue, 28 Apr 2020 02:04:51 +0000 Subject: [PATCH] lualoader: cli: add read-conf This is a straightforward match to the command used by many in forthloader; it uses the newly-exported config.readConfFiles() to make sure that any loader_conf_files gets done as appropriate. PR: 244640 Submitted by: Olivier Certner MFC after: 3 days --- stand/lua/cli.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stand/lua/cli.lua b/stand/lua/cli.lua index b2434faa3ce..62fac3f52bd 100644 --- a/stand/lua/cli.lua +++ b/stand/lua/cli.lua @@ -125,6 +125,11 @@ cli['boot-conf'] = function(...) core.autoboot(argstr) end +cli['read-conf'] = function(...) + local _, argv = cli.arguments(...) + config.readConfFiles(assert(core.popFrontTable(argv)), {}) +end + cli['reload-conf'] = function(...) config.reload() end -- 2.45.0