Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Feb 2018 04:33:37 +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: r329429 - head/stand/lua
Message-ID:  <201802170433.w1H4Xb0K058255@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Sat Feb 17 04:33:37 2018
New Revision: 329429
URL: https://svnweb.freebsd.org/changeset/base/329429

Log:
  stand/lua: Add debug method to dump modules

Modified:
  head/stand/lua/config.lua

Modified: head/stand/lua/config.lua
==============================================================================
--- head/stand/lua/config.lua	Sat Feb 17 04:22:36 2018	(r329428)
+++ head/stand/lua/config.lua	Sat Feb 17 04:33:37 2018	(r329429)
@@ -37,6 +37,14 @@ function config.setKey(k, n, v)
 	modules[k][n] = v;
 end
 
+function config.dumpModules()
+	print("== Dumping modules")
+	for k, v in pairs(modules) do
+		print(k, v.load);
+	end
+	print("== Dump ended")
+end
+
 local pattern_table = {
 	[1] = {
 		str = "^%s*(#.*)",



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