mirror of
https://github.com/kepler155c/opus
synced 2024-11-16 13:44:49 +00:00
14 lines
260 B
Lua
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
|
|
|