1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-13 16:56:49 +00:00
CC-Tweaked/src/main/resources/data/computercraft/lua/rom/programs/apis.lua
2020-05-13 14:04:28 +01:00

15 lines
325 B
Lua

local tApis = {}
for k, v in pairs(_G) do
if type(k) == "string" and type(v) == "table" and k ~= "_G" then
table.insert(tApis, k)
end
end
table.insert(tApis, "shell")
table.insert(tApis, "package")
if multishell then
table.insert(tApis, "multishell")
end
table.sort(tApis)
textutils.pagedTabulate(tApis)