ad list script

pull/13/head
ruki 6 years ago
parent f99e713488
commit 43e5cc2f15
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 10
      scripts/list.lua

@ -0,0 +1,10 @@
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
Loading…
Cancel
Save