v2.7.0 - Added a serialization library for table and strings, and automatic output in the Lua shell

This commit is contained in:
Ponali
2025-07-23 10:46:05 +02:00
parent 68e5b70273
commit bf4c1af9ef
5 changed files with 139 additions and 5 deletions
+3 -1
View File
@@ -17,7 +17,9 @@ while true do
return
else
local function runCommand()
assert(load(loadedLibraries .. command))()
local func = load(loadedLibraries.."return "..command,"=stdin") or load(loadedLibraries..command,"=stdin")
local res = {assert(func)()}
if res and (type(res[1])~="nil" or type(res[2])~="nil") then print(table.unpack(res)) end
end
local result, reason = xpcall(runCommand, function(errMsg)
return errMsg .. "\n\n" .. debug.traceback()