MCPcopy Create free account
hub / github.com/TheCyaniteProject/exit_code_java / exePrivate

Method exePrivate

src/main/java/exitcode/Console.java:250–259  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

exeCommandMethod · 0.95

Calls 2

runCommandMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected