Part of the function to execute a Command. @param input The command to run. @param termArea The JavaFX Label to output to. @param body The body of the command. (Everything originally after the first space) @return true if the Command ran successfully, false otherwise. @author Allison Smith (
(String input, Label termArea, String body)
| 150 | * @see exitcode.Console#exePrivate(String, Label, String) |
| 151 | */ |
| 152 | private boolean exeGlobal(String input, Label termArea, String body) { |
| 153 | if (globalCommands.containsKey(input)) { |
| 154 | Command command = globalCommands.get(input); |
| 155 | if (!(command == null)) { |
| 156 | command.runCommand(termArea, body, this); |
| 157 | return true; |
| 158 | } |
| 159 | } |
| 160 | return false; |
| 161 | } |
| 162 | |
| 163 | /** |
| 164 | * A simple method for printing text to a terminal. |
no test coverage detected