Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --api listing program writen by A_Tasty_Peanut
- --to use just write the component name after the program
- --for example to list the api for gpu type "apiList gpu"
- local com = require "component"
- local args = {...}
- local part = args[1]
- print("getting api for: "..part)
- local wrapped = com.getPrimary(part)
- print("----Start----")
- print(" ")
- for k, v in pairs(wrapped) do
- print("<> "..k,v)
- print(" ")
- -- io.read()
- end
- print("----END----")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement