svn commit: r360422 - head/stand/lua

Kyle Evans kevans at FreeBSD.org
Tue Apr 28 02:04:52 UTC 2020


Author: kevans
Date: Tue Apr 28 02:04:51 2020
New Revision: 360422
URL: https://svnweb.freebsd.org/changeset/base/360422

Log:
  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

Modified:
  head/stand/lua/cli.lua

Modified: head/stand/lua/cli.lua
==============================================================================
--- head/stand/lua/cli.lua	Tue Apr 28 02:03:03 2020	(r360421)
+++ head/stand/lua/cli.lua	Tue Apr 28 02:04:51 2020	(r360422)
@@ -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


More information about the svn-src-head mailing list