mirror of
https://github.com/kepler155c/opus
synced 2025-10-22 03:07:40 +00:00
package manager wip
This commit is contained in:
13
sys/apps/Packages.lua
Normal file
13
sys/apps/Packages.lua
Normal 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
|
||||
|
Reference in New Issue
Block a user