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

Method exeGlobal

src/main/java/exitcode/Console.java:152–161  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

exeCommandMethod · 0.95

Calls 2

runCommandMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected