os.loadAPI("/apis/sane")local dir = { ["forward"] = turtle.forward, ["back"] = turtle.back, ["up"] = turtle.up, ["down"] = turtle.down, ["home"] = function () sane.goHome() sane.face(0) end}local function keys (t) local keys = {} for k, v in pairs(t) do keys[#keys + 1] = k end return keysendlocal args = {...}if dir[args[1]] then for i = 1, args[2] or 1 do dir[args[1]]() endelse print("No such direction: ", args[1]) term.write("Try: ") print(table.concat(keys(dir), ", "))end