MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / loadCommands

Method loadCommands

java/src/org/openqa/selenium/grid/Main.java:60–64  ·  view source on GitHub ↗
(ClassLoader loader)

Source from the content-addressed store, hash-verified

58 }
59
60 private static Set<CliCommand> loadCommands(ClassLoader loader) {
61 Set<CliCommand> commands = new TreeSet<>(comparing(CliCommand::getName));
62 ServiceLoader.load(CliCommand.class, loader).forEach(commands::add);
63 return commands;
64 }
65
66 private void showHelp(ClassLoader loader) {
67 new Help(loadCommands(loader)).configure(out, err).run();

Callers 2

showHelpMethod · 0.95
launchMethod · 0.95

Calls 2

forEachMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected