epugh commented on code in PR #4127:
URL: https://github.com/apache/solr/pull/4127#discussion_r2801317998
##########
solr/core/src/java/org/apache/solr/cli/RunExampleTool.java:
##########
@@ -73,6 +73,16 @@ public class RunExampleTool extends ToolBase {
"Don't prompt for input; accept all defaults when running
examples that accept user input.")
.build();
+ private static final Option PROMPTS_OPTION =
+ Option.builder()
+ .longOpt("prompts")
+ .hasArg()
+ .argName("VALUES")
+ .desc(
+ "Provide comma-separated values for prompts. Same as --no-prompt
but uses provided values instead of defaults. "
+ + "Example: --prompts
3,8983,8984,8985,\"gettingstarted\",2,2,_default")
Review Comment:
yeah.. I worry about building something that is more code then the value...
and, the number of items changes depending on inputs. so if it's one node,
you are `1,8983,gettingstarted,2,2,_default`, and if it's four,
`4,9000,9001,9003,9002,"gettingstarted\",2,2,_default`. Now imagaine we add
some more prompts, then it will all change...
--
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]