CliSite/commands/help.ts

27 lines
1016 B
TypeScript
Raw Normal View History

2022-06-12 09:38:38 +02:00
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 += "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";
2022-06-12 12:41:52 +02:00
buf += "beep - makes a beep\n";
2022-06-12 09:38:38 +02:00
buf += "man - display longer help\n";
return buf;
}
export {help};