diff options
| author | ruki <[email protected]> | 2020-06-02 22:35:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-02 09:31:30 +0800 |
| commit | c1c4b41dc630828d99bcb996efc7be8d1adca565 (patch) | |
| tree | dd90ce5da920fe13a7b90499ae001ae346698177 /xmake/plugins/show/main.lua | |
| parent | 57d0afd2f29d9d3b646a692e5d580224f5f607ba (diff) | |
show basic info
Diffstat (limited to 'xmake/plugins/show/main.lua')
| -rw-r--r-- | xmake/plugins/show/main.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/xmake/plugins/show/main.lua b/xmake/plugins/show/main.lua index 08f169a21..b1c7b3183 100644 --- a/xmake/plugins/show/main.lua +++ b/xmake/plugins/show/main.lua @@ -32,15 +32,18 @@ function main() -- show list? local listname = option.get("list") if listname then - _show_list(listname) + return _show_list(listname) else + -- show the information of the given object for _, filepath in ipairs(os.files(path.join(os.scriptdir(), "info", "*.lua"))) do local name = path.basename(filepath) if option.get(name) then - local show_info = assert(import("info." .. name, {try = true, anonymous = true}), "unknown list name(%s)", name) - show_info(option.get(name)) - break + local show_info = assert(import("info." .. name, {try = true, anonymous = true}), "unknown option name(%s)", name) + return show_info(option.get(name)) end end end + + -- show the basic information of xmake and the current project + assert(import("info.basic", {try = true, anonymous = true}))() end |
