function help(): string { var buf = ""; buf += "Available commands:\n"; buf += "help - shows this help\n"; buf += "clear - clears the console\n"; buf += "ls - lists the files in the current directory\n"; buf += "cd - changes the current directory\n"; buf += "echo - prints the arguments\n"; buf += "mkdir - creates a new directory\n"; buf += "cat - prints the contents of a file\n"; buf += "touch - creates a new file\n"; buf += "rm - removes a file\n"; buf += "mv - moves a file\n"; buf += "faq - displays FAQ\n"; buf += "cp - copies a file\n"; buf += "rmdir - removes a directory\n"; buf += "pwd - prints the current directory\n"; buf += "exec - executes a file\n"; buf += "spam - spams the console\n"; buf += "overwrite - overwrites the file with data\n"; buf += "append - appends the arguments to a file\n"; buf += "screenshot - takes a screenshot\n"; buf += "beep - makes a beep\n"; buf += "man - display longer help\n"; return buf; } export {help};