Part of the function to execute a Command. @param commandName 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 Alliso
(String commandName, Label termArea, String body)
| 248 | * @see exitcode.Console#exeGlobal(String, Label, String) |
| 249 | */ |
| 250 | private boolean exePrivate(String commandName, Label termArea, String body) { |
| 251 | if (this.privateCommands.containsKey(commandName)) { |
| 252 | Command command = this.privateCommands.get(commandName); |
| 253 | if (!(command == null)) { |
| 254 | command.runCommand(termArea, body, this); |
| 255 | return true; |
| 256 | } |
| 257 | } |
| 258 | return false; |
| 259 | } |
| 260 | |
| 261 | /** |
| 262 | * Adds a new command to the Map of privateCommands. |
no test coverage detected