diff options
| author | ruki <[email protected]> | 2026-04-18 21:21:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-04-20 09:35:36 +0800 |
| commit | 51be800bddfa199774206393cb8d7e0749f59756 (patch) | |
| tree | 6cc51dcda14a0469125e8596fc6525aa6584782c /xmake/plugins/show/list.lua | |
| parent | 8a58cf9cb94e016c8a2297f1edab6b883d02e847 (diff) | |
improve xmake show --info
Diffstat (limited to 'xmake/plugins/show/list.lua')
| -rw-r--r-- | xmake/plugins/show/list.lua | 12 |
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 |
