update util
This commit is contained in:
@@ -7,18 +7,10 @@ function M.cc(tbl, sep)
|
|||||||
return table.concat(tbl, sep or "")
|
return table.concat(tbl, sep or "")
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.year(y)
|
|
||||||
return y or os.date("%Y")
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.copyright(link, holder)
|
function M.copyright(link, holder)
|
||||||
return symbol.legal.copyright .. " " .. std.external(link, holder)
|
return symbol.legal.copyright .. " " .. std.external(link, holder)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.license(name)
|
|
||||||
return symbol.legal.registered .. " " .. name
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.ls(dir)
|
function M.ls(dir)
|
||||||
local p = io.popen('ls -A -1 -- ' .. string.format('%q', dir))
|
local p = io.popen('ls -A -1 -- ' .. string.format('%q', dir))
|
||||||
if not p then
|
if not p then
|
||||||
|
|||||||
Reference in New Issue
Block a user