You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Eric Pugh (Jira)" <ji...@apache.org> on 2024/08/16 14:24:00 UTC
[jira] [Resolved] (SOLR-17359) Make SolrCLI handle arg parsing of zk sub commands
[ https://issues.apache.org/jira/browse/SOLR-17359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Pugh resolved SOLR-17359.
------------------------------
Fix Version/s: main (10.0)
(was: 9.7)
Assignee: Eric Pugh
Resolution: Fixed
I am still working on how to get this back ported to 9.x. It may end up staying in 10 ;-(
> Make SolrCLI handle arg parsing of zk sub commands
> --------------------------------------------------
>
> Key: SOLR-17359
> URL: https://issues.apache.org/jira/browse/SOLR-17359
> Project: Solr
> Issue Type: Sub-task
> Components: scripts and tools
> Reporter: Jan Høydahl
> Assignee: Eric Pugh
> Priority: Major
> Labels: pull-request-available
> Fix For: main (10.0)
>
> Time Spent: 3h 20m
> Remaining Estimate: 0h
>
> Both bin/solr and bin/solr.cmd have lots of shell code to parse the zk sub commands, and to print the usage text. We have both a short zk uage text and the full one.
> {code:java}
> Usage: solr zk upconfig|downconfig -d <confdir> -n <configName> [-z zkHost] [-s solrUrl]"
> solr zk cp [-r] <src> <dest> [-z zkHost] [-s solrUrl]"
> solr zk rm [-r] <path> [-z zkHost] [-s solrUrl]"
> solr zk mv <src> <dest> [-z zkHost] [-s solrUrl]"
> solr zk ls [-r] <path> [-z zkHost] [-s solrUrl]"
> solr zk mkroot <path> [-z zkHost] [-s solrUrl]"
> solr zk linkconfig --conf-name <confname> -c <collection> [-z zkHost] [-s solrUrl]"
> solr zk updateacls <path> [-z zkHost] [-s solrUrl]" {code}
> Extend SolrCLI and tools API to handle sub commands more natively so that doing {{solr zk -h}} shows a list of sub commands, while `solr zk cp -h` shows usage for that sub command.
> I think commons-cli does not have native subcommand support like e.g. picocli, but it should be possible to implement..
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org