|
|
@@ -1,3 +1,4 @@ |
|
|
|
local serial = require "serialization" |
|
|
|
local shell = {} |
|
|
|
shell.include = {"shutil"} |
|
|
|
local function shindex(self,k) |
|
|
@@ -25,7 +26,16 @@ function shell.interactive() |
|
|
|
local rt = {pcall(f)} |
|
|
|
local rs = table.remove(rt,1) |
|
|
|
for k,v in pairs(rt) do |
|
|
|
print(tostring(v)) |
|
|
|
if type(v) == "table" then |
|
|
|
local w, s = pcall(serial.serialize,v) |
|
|
|
if w then |
|
|
|
print(s) |
|
|
|
else |
|
|
|
print(tostring(v)) |
|
|
|
end |
|
|
|
else |
|
|
|
print(tostring(v)) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|