MCPcopy Create free account
hub / github.com/apache/solr / runImpl

Method runImpl

solr/core/src/java/org/apache/solr/cli/ZkToolHelp.java:56–79  ·  view source on GitHub ↗
(CommandLine cli)

Source from the content-addressed store, hash-verified

54 }
55
56 @Override
57 public void runImpl(CommandLine cli) throws Exception {
58 if (cli.hasOption(PRINT_ZK_SUBCOMMAND_OPTION)) {
59 String scriptCommand = cli.getArgs()[0];
60 print(
61 "You must invoke this subcommand using the zk command. bin/solr zk "
62 + scriptCommand
63 + ".");
64 }
65 if (cli.hasOption(PRINT_LONG_ZK_USAGE_OPTION)) {
66 print("usage:");
67 print(new ZkLsTool(runtime).getUsage());
68 print(new ZkCpTool(runtime).getUsage());
69 print(new ZkMvTool(runtime).getUsage());
70
71 print(new ConfigSetUploadTool(runtime).getUsage());
72 print(new ConfigSetDownloadTool(runtime).getUsage());
73 print(new ZkMkrootTool(runtime).getUsage());
74 print(new UpdateACLTool(runtime).getUsage());
75 print("");
76 print(
77 "Pass --help or -h after any COMMAND to see command-specific usage information such as: ./solr zk ls --help");
78 }
79 }
80}

Callers

nothing calls this directly

Calls 3

getUsageMethod · 0.65
getArgsMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected