working on api docs
This commit is contained in:
1 parent
56d8fb2016
commit
38d56ced19
43 files changed
+5669
-618
No files matched your search
@@ -0,0 +1,2 @@
|
||||
Hyperion
|
||||
Astronand
|
||||
@@ -0,0 +1,10 @@
|
||||
--:Minify:--
|
||||
local args={...}
|
||||
if type(args[1])~="string" then print("Usage: wget [url]"); syscall.exit() end
|
||||
local http = require("http")
|
||||
local fs = require("fs")
|
||||
print("GET: "..args[1])
|
||||
local resp = http.get(args[1])
|
||||
local clean_url = args[1]:match("^([^?#]+)")
|
||||
local filename = clean_url:match("^.+/(.+)$")
|
||||
fs.writeAllText(filename, resp.body)
|
||||
@@ -0,0 +1 @@
|
||||
Hyperion-core
|
||||
@@ -0,0 +1 @@
|
||||
simple wget command
|
||||
@@ -0,0 +1 @@
|
||||
1.0.0
|
||||
Reference in new issue
Block a user