This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
FREAX/etc/lib/man
2022-07-18 19:33:40 +02:00

12 lines
334 B
Bash

function findManual(name)
local flist = fs.list("/etc/manuals")
for _, file in ipairs(flist) do
if not fs.isDir("/etc/manuals/"..file) and file == name then
local handle = fs.open("/etc/manuals/"..file, "r")
local contents = handle.readAll()
handle.close()
return contents
end
end
return "No manual available"
end