Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local net = require("API/net")
- local comp = require("component")
- local gpu = comp.gpu
- register("petesMachine", 100)
- a = {...}
- func = a[1]
- filename = a[2]
- filepath = a[3]
- version = a[4]
- installDir = a[5]
- if func == "pull" then
- pull(myName, filename)
- elseif func == "list" then
- list = getRepoList()
- for i = 1, #list do
- print(i..". "..list[i])
- end
- elseif func == "push" then
- push(filepath, filename, version, installDir)
- else
- old = gpu.getForeground()
- gpu.setForeground(0xFF0000)
- print("Usage: repo [function] [filename]")
- gpu.setForeground(old)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement