janhoy opened a new pull request, #3247:
URL: https://github.com/apache/solr/pull/3247
PR that will merge into the Picocli feature branch visualized by #3254. This
PR adds:
* Parses `bin/solr` with picocli by default but also retain commons-cli for
comparison. Switch using `SOLR_PICOCLI=false`
* Implements `VersionTool`, `HealthcheckTool` and `StatusTool` as sub
commands
* New `ZkTool` sub command, which in turn has `ZkLsTool` as a sub command
* Demonstrate use of custom `defaultValueProvider` to let `--zk-host` option
look for a value in environment
This is the first of many PRs to go against the feature branch to try to
build full picocli coverage for the CLI tools.
## Sample output for `bin/solr -h`:
```
Usage: solr [-hv] [COMMAND]
Global options:
-h, --help Display this help message
-v, --version Print version information and exit
Commands:
status Get the status of a Solr server.
healthcheck Check the health of a SolrCloud collection.
version Prints the Solr version.
zk Sub commands for working with ZooKeeper.
SolrCloud example (embedded Zookeeper):
./solr start -c
For more help on how to use Solr, head to https://solr.apache.org/
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]