diff options
| author | ruki <[email protected]> | 2017-05-17 08:28:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-05-17 08:28:19 +0800 |
| commit | 08c53d721f0b9c6e7a931eaffbed941d0bcc6253 (patch) | |
| tree | 5920321ebc3f3977a4a8f0a38fb9edec7a2e8c4b /xmake/plugins/lua/xmake.lua | |
| parent | 807c7db15fa3a5e640ecde32ede9e72c4d64391c (diff) | |
dump lua action return value
Diffstat (limited to 'xmake/plugins/lua/xmake.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 |
