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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to