iteration
This commit is contained in:
parent
23839bfcbe
commit
f3c4004500
@ -56,7 +56,8 @@ function lookup(remote_hostname)
|
|||||||
["hostname"] = 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
|
while true do
|
||||||
id, msg = rednet.receive("lns")
|
id, msg = rednet.receive("lns")
|
||||||
|
2
lum.lua
2
lum.lua
@ -21,7 +21,7 @@ elseif action == "remove" then
|
|||||||
lum.remove(package)
|
lum.remove(package)
|
||||||
io.write("Done!\n")
|
io.write("Done!\n")
|
||||||
elseif action == "version" then
|
elseif action == "version" then
|
||||||
print("Lum version 0.1.0")
|
print("0.1.0")
|
||||||
else
|
else
|
||||||
io.write("Usage: lum <install:remove:version>\n")
|
io.write("Usage: lum <install:remove:version>\n")
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user