20 lines
322 B
Lua
20 lines
322 B
Lua
|
local args = { ... }
|
||
|
|
||
|
local action = args[1]
|
||
|
if action == nil then
|
||
|
print("Usage: lum <install:remove>")
|
||
|
return
|
||
|
end
|
||
|
|
||
|
|
||
|
if action == "install" then
|
||
|
package = args[2]
|
||
|
if package == nil then
|
||
|
print("Usage: lum install <package>")
|
||
|
return
|
||
|
end
|
||
|
|
||
|
lum.install(package)
|
||
|
io.write("Done!\n")
|
||
|
|