update api to use "block" for future protocol expantion

This commit is contained in:
2026-02-13 21:40:08 -05:00
parent ac30aea1fa
commit b2dfe99326
4 changed files with 246 additions and 510 deletions

View File

@@ -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