2023-10-08 10:04:21 +02:00
|
|
|
local args = { ... }
|
|
|
|
|
|
|
|
local action = args[1]
|
|
|
|
|
|
|
|
if action == "install" then
|
|
|
|
package = args[2]
|
2023-10-09 13:14:14 +02:00
|
|
|
|
2023-10-08 10:04:21 +02:00
|
|
|
if package == nil then
|
|
|
|
print("Usage: lum install <package>")
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
lum.install(package)
|
|
|
|
io.write("Done!\n")
|
2023-10-08 10:14:52 +02:00
|
|
|
elseif action == "remove" then
|
|
|
|
package = args[2]
|
|
|
|
if package == nil then
|
|
|
|
print("Usage: lum remove <package>")
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
lum.remove(package)
|
|
|
|
io.write("Done!\n")
|
|
|
|
elseif action == "version" then
|
2023-10-08 10:17:33 +02:00
|
|
|
print("0.1.0")
|
2023-10-08 10:14:52 +02:00
|
|
|
else
|
|
|
|
io.write("Usage: lum <install:remove:version>\n")
|
2023-10-08 10:12:29 +02:00
|
|
|
end
|