1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-22 03:07:40 +00:00

package manager wip

This commit is contained in:
kepler155c@gmail.com
2018-10-20 20:35:48 -04:00
parent 8b50127f21
commit b7176e55ad
4 changed files with 87 additions and 0 deletions

13
sys/apps/Packages.lua Normal file
View File

@@ -0,0 +1,13 @@
_G.requireInjector(_ENV)
local Packages = require('packages')
local Util = require('util')
local args = { ... }
if args[1] == 'list' then
for k,v in pairs(Packages:list()) do
Util.print('[%s] %s', Packages:isInstalled(k) and 'x' or ' ', k)
end
end