stand/lua: Add debug method to dump modules
This commit is contained in:
parent
c990f0a990
commit
41e77b5399
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329429
@ -37,6 +37,14 @@ function config.setKey(k, n, v)
|
|||||||
modules[k][n] = v;
|
modules[k][n] = v;
|
||||||
end
|
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 = {
|
local pattern_table = {
|
||||||
[1] = {
|
[1] = {
|
||||||
str = "^%s*(#.*)",
|
str = "^%s*(#.*)",
|
||||||
|
Loading…
Reference in New Issue
Block a user