16 lines
301 B
Lua
16 lines
301 B
Lua
if not commands then
|
|
printError("Requires a Command Computer.")
|
|
return
|
|
end
|
|
|
|
local tCommands = commands.list()
|
|
table.sort(tCommands)
|
|
|
|
if term.isColor() then
|
|
term.setTextColor(colors.green)
|
|
end
|
|
print("Available commands:")
|
|
term.setTextColor(colors.white)
|
|
|
|
textutils.pagedTabulate(tCommands)
|