update api to use "block" for future protocol expantion
This commit is contained in:
@@ -1,16 +1,9 @@
|
||||
local std = require("lib.std")
|
||||
local symbol = require("lib.symbol")
|
||||
|
||||
local M = {}
|
||||
|
||||
function M.cc(tbl, sep)
|
||||
return table.concat(tbl, sep or "")
|
||||
end
|
||||
|
||||
function M.copyright(link, holder)
|
||||
return symbol.legal.copyright .. " " .. std.external(link, holder)
|
||||
end
|
||||
|
||||
function M.ls(dir)
|
||||
local p = io.popen('ls -A -1 -- ' .. string.format('%q', dir))
|
||||
if not p then
|
||||
|
||||
Reference in New Issue
Block a user