Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Apr 2020 02:04:52 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r360422 - head/stand/lua
Message-ID:  <202004280204.03S24qZ9063662@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004280204.03S24qZ9063662>