Details

    Description

      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.

      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]" 

      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..

      Attachments

        Issue Links

          Activity

            People

              epugh Eric Pugh
              janhoy Jan Høydahl
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 20m
                  3h 20m