nevdmitry commented on code in PR #2339:
URL: https://github.com/apache/ignite-3/pull/2339#discussion_r1270871388
##########
modules/cli/src/main/java/org/apache/ignite/internal/cli/commands/questions/ConnectToClusterQuestion.java:
##########
@@ -108,6 +112,25 @@ public FlowBuilder<Void, String>
askQuestionIfConnected(String nodeUrl) {
}
return Flows.from(nodeUrl);
}
+ /**
+ * Ask if the user wants to store credentials in config.
+ *
+ * @param username username.
+ * @param password password
+ * @return {@link FlowBuilder} instance which provides result.
+ */
+ public void askQuestionToStoreCredentials(@Nullable String username,
@Nullable String password) {
+ if (!nullOrBlank(username) && !nullOrBlank(password)) {
+ QuestionUiComponent question = fromYesNoQuestion(
+ "Do you want to store username and password in cli
configuration config?"
Review Comment:
updated
--
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]