1
0
mirror of https://github.com/kepler155c/opus synced 2024-11-18 22:54:51 +00:00
opus/sys/apps/Packages.lua
kepler155c@gmail.com b7176e55ad package manager wip
2018-10-20 20:35:48 -04:00

14 lines
260 B
Lua

_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