Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("grey_api/move.lua")
- os.loadAPI("grey_api/util.lua")
- local raw_input = nil --raw string
- local command = nil --tokenized
- shell.run("clear")
- io.input(stdin)
- while true do
- io.write(">")
- raw_input = io.read()
- command = util.tokenize(raw_input)
- if command[1]=="exit" then
- break
- elseif command[1] == "clear" then
- shell.run("clear")
- elseif command[1] == "help" then
- print(" >exit - exits storage program")
- print(" >help - prints help dialog")
- print(" >clear - clears screen")
- print("")
- print(" >add <count> - adds more chests: count")
- print(" >upgrade <id|type> <id|type> - upgrades chests")
- print(" >get count [type] - gets info about chests")
- print(" >get total capacity - gets total number of items capable ")
- else
- print(" Unknown command. For help use >help")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement