stand/lua: Add debug method to dump modules

This commit is contained in:
kevans 2018-02-17 04:33:37 +00:00
parent 0afa86db89
commit 578ddeafba

View File

@ -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*(#.*)",