From 51be800bddfa199774206393cb8d7e0749f59756 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Apr 2026 21:21:33 +0800 Subject: improve xmake show --info --- xmake/plugins/show/list.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'xmake/plugins/show/list.lua') diff --git a/xmake/plugins/show/list.lua b/xmake/plugins/show/list.lua index fb2914964..301048ce2 100644 --- a/xmake/plugins/show/list.lua +++ b/xmake/plugins/show/list.lua @@ -29,3 +29,15 @@ function lists() end return values end + +-- get all info values +function infos() + local values = {} + for _, filepath in ipairs(os.files(path.join(os.scriptdir(), "info", "*.lua"))) do + local name = path.basename(filepath) + if name ~= "basic" and name ~= "target" then + table.insert(values, name) + end + end + return values +end -- cgit v1.3.1