the shell now prints tables that are returned as a serialized value
This commit is contained in:
parent
c78bb7b32c
commit
ce6e405934
@ -1,3 +1,4 @@
|
||||
local serial = require "serialization"
|
||||
print(pcall(function()
|
||||
local shenv = {}
|
||||
function shenv.quit()
|
||||
@ -49,7 +50,11 @@ while os.getenv("run") do
|
||||
tResult = {pcall(load(input,"shell","t",shenv))}
|
||||
if tResult[1] == true then table.remove(tResult,1) end
|
||||
for k,v in pairs(tResult) do
|
||||
print(v)
|
||||
if type(v) == "table" then
|
||||
print(serial.serialize(v))
|
||||
else
|
||||
print(v)
|
||||
end
|
||||
end
|
||||
end
|
||||
end))
|
||||
|
Loading…
Reference in New Issue
Block a user