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 <olivier freebsd free fr>
MFC after:	3 days
This commit is contained in:
Kyle Evans 2020-04-28 02:04:51 +00:00
parent 7a5c6c8bfe
commit e40d2a04ea

View File

@ -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