(CommandLine cli)
| 49 | } |
| 50 | |
| 51 | @Override |
| 52 | public void runImpl(CommandLine cli) throws Exception { |
| 53 | echo("Client version: " + SolrVersion.LATEST); |
| 54 | |
| 55 | if (CLIUtils.hasConnectionOption(cli)) { |
| 56 | String solrUrl = CLIUtils.normalizeSolrUrl(cli); |
| 57 | String credentials = cli.getOptionValue(CommonCLIOptions.CREDENTIALS_OPTION); |
| 58 | try (var solrClient = CLIUtils.getSolrClient(solrUrl, credentials)) { |
| 59 | SystemInfoResponse sysResponse = new SystemInfoRequest().process(solrClient); |
| 60 | echo("Server version: " + sysResponse.getSolrImplVersion()); |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | } |
nothing calls this directly
no test coverage detected