summaryrefslogtreecommitdiff
path: root/xmake/plugins/show/list.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/plugins/show/list.lua')
-rw-r--r--xmake/plugins/show/list.lua12
1 files changed, 12 insertions, 0 deletions
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