1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-11-14 00:47:00 -05:00
OC-PsychOS2/exec/shell.lua
2018-11-03 03:05:41 +11:00

10 lines
330 B
Lua

local shenv = {}
setmetatable(shenv,{__index=function(_,k) if _G[k] then return _G[k] elseif fs.exists("/boot/exec/"..k..".lua") then return loadfile("/boot/exec/"..k..".lua") end end})
while true do
io.write(_VERSION.."> ")
tResult = {pcall(load(io.read(),"shell","t",shenv))}
for k,v in pairs(tResult) do
print(v)
end
end