Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. if (command === 'hi') {
  2. term.echo('hi there! What is your name??');
  3. term.push(function(command, term) {
  4. return term.echo(command + ' is a pretty name');
  5. });
  6. } else if (command === 'shell') {
  7. term.push(function(command, term) {
  8. if (command === 'cd') {
  9. return bash(term, inputs);
  10. }
  11. }, {
  12. prompt: '> $ '
  13. });
  14. } else if (command === 'r') {
  15. location.reload('forceGet');
  16. } else if (command === '#') {
  17. term.echo('which question?');
  18. } else if (command === 'test') {
  19. term.echo('I have to keep testing myself.');
  20. } else if (command === 'cd') {
  21. bash(term, inputs);
  22. } else if (command === "docker") {
  23. Docker(term, inputs);
  24. } else if (command === "help") {
  25. term.echo(help);
  26. } else if (command === "ls") {
  27. term.echo("This is an emulator, not a shell. Try following the instructions.");
  28. } else if (command === "colors") {
  29. for (DockerCommand in DockerCommands) {
  30. description = DockerCommands[DockerCommand];
  31. term.echo("[[b;#fff;]" + DockerCommand + "] - " + description + "");
  32. }
  33. } else if (command === "pull") {
  34. term.echo('[[b;#fff;]some text]');
  35. wait(term, 5000, true);
  36. alert(term.get_output());
  37. return;
  38. } else if (command) {
  39. term.echo("" + inputs[0] + ": command not found");
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement