iteration

This commit is contained in:
Layla 2023-10-08 04:17:33 -04:00
parent 23839bfcbe
commit f3c4004500
2 changed files with 3 additions and 2 deletions

View File

@ -56,7 +56,8 @@ function lookup(remote_hostname)
["hostname"] = remote_hostname
}
rednet.send(server(), data, "lns")
local lns_server_id = server()
rednet.send(lns_server_id, data, "lns")
while true do
id, msg = rednet.receive("lns")

View File

@ -21,7 +21,7 @@ elseif action == "remove" then
lum.remove(package)
io.write("Done!\n")
elseif action == "version" then
print("Lum version 0.1.0")
print("0.1.0")
else
io.write("Usage: lum <install:remove:version>\n")
end