1
0
mirror of https://github.com/kepler155c/opus synced 2024-06-13 17:06:54 +00:00
opus/sys/apps/Packages.lua

14 lines
260 B
Lua
Raw Normal View History

2018-10-21 00:35:48 +00:00
_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