package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
315 B

function main(...)
local packages = {}
for _, dir in ipairs(os.dirs(path.join("packages", "*", "*"))) do
local package = path.filename(dir)
local key = package:sub(1, 1)
packages[key] = packages[key] or {}
table.insert(packages[key], package)
end
print(packages)
end