diff options
Diffstat (limited to 'xmake/plugins/lua')
| -rw-r--r-- | xmake/plugins/lua/xmake.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/plugins/lua/xmake.lua b/xmake/plugins/lua/xmake.lua index 354477e16..77833e9a3 100644 --- a/xmake/plugins/lua/xmake.lua +++ b/xmake/plugins/lua/xmake.lua @@ -69,7 +69,12 @@ task("lua") else -- run modules (xmake lua core.xxx.xxx) - import(script)(unpack(option.get("arguments") or {})) + local result = import(script)(unpack(option.get("arguments") or {})) + if type(result) == "table" then + table.dump(table) + elseif result ~= nil then + print(result) + end end else -- enter interactive mode |
