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

Method checkGlobal

src/main/java/exitcode/Console.java:331–341  ·  view source on GitHub ↗

Checks if a Global command exists. @param commandName The name of the command to check for. @return true if the command exists, false otherwise. @author Allison Smith (Cyanite)

(String commandName)

Source from the content-addressed store, hash-verified

329 * @author Allison Smith (Cyanite)
330 */
331 private boolean checkGlobal(String commandName) {
332 if (globalCommands.containsKey(commandName)) {
333 if (globalCommands.get(commandName).isDebug()) {
334 return this.isDebug();
335 } else {
336 return true;
337 }
338 } else {
339 return false;
340 }
341 }
342
343 private ArrayList<String> formatCommand(String commandName) {
344 String command;

Callers 1

checkCommandMethod · 0.95

Calls 2

isDebugMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected