diff --git a/download.lua b/download.lua new file mode 100644 index 0000000..cbde889 --- /dev/null +++ b/download.lua @@ -0,0 +1,6 @@ +local tArgs = { ... } +local url = "http://example.net/computercraft/" +local x = http.get(url..tArgs[1]).readAll() +hFile = io.open(tArgs[2], "w") +hFile:write(x) +hFile:close() diff --git a/execute.lua b/execute.lua new file mode 100644 index 0000000..056d0b7 --- /dev/null +++ b/execute.lua @@ -0,0 +1,5 @@ +local tArgs = { ... } +local url = "http://example.net/computercraft/" +local x = http.get(url..tArgs[1]).readAll() +f = loadstring(x) +f(unpack(tArgs, 2)) diff --git a/hello_world.lua b/hello_world.lua deleted file mode 100644 index 442659b..0000000 --- a/hello_world.lua +++ /dev/null @@ -1 +0,0 @@ -print("Hello world!") \ No newline at end of file