2 local fs = require "luci.fs"
3 local util = require "luci.util"
4 local uvldoc = require "luci.uvldoc.renderer"
8 require "luci.model.uci".cursor = function(config, save)
9 return uci.cursor(config or arg[1] .. "/etc/config", save or arg[1] .. "/tmp/.uci")
14 if not arg[4] or #arg[4] == 0 then
15 for i, name in ipairs(fs.dir(arg[2].."/default/")) do
16 if name ~= "." and name ~= ".." then
17 schemes[#schemes+1] = name
21 schemes = util.split(arg[4], "[,;%s]+", nil, true)
24 uvldoc.Generator(schemes, arg[3], arg[2]):make()