1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-11-22 12:04:20 -05:00

the shell now prints tables that are returned as a serialized value

This commit is contained in:
XeonSquared 2019-11-26 18:47:20 +11:00
parent c78bb7b32c
commit ce6e405934

View File

@ -1,3 +1,4 @@
local serial = require "serialization"
print(pcall(function() print(pcall(function()
local shenv = {} local shenv = {}
function shenv.quit() function shenv.quit()
@ -49,7 +50,11 @@ while os.getenv("run") do
tResult = {pcall(load(input,"shell","t",shenv))} tResult = {pcall(load(input,"shell","t",shenv))}
if tResult[1] == true then table.remove(tResult,1) end if tResult[1] == true then table.remove(tResult,1) end
for k,v in pairs(tResult) do for k,v in pairs(tResult) do
if type(v) == "table" then
print(serial.serialize(v))
else
print(v) print(v)
end end
end end
end
end)) end))