nevdmitry commented on code in PR #2339:
URL: https://github.com/apache/ignite-3/pull/2339#discussion_r1274008387


##########
modules/cli/src/main/java/org/apache/ignite/internal/cli/commands/connect/ConnectOptions.java:
##########
@@ -0,0 +1,39 @@
+package org.apache.ignite.internal.cli.commands.connect;
+
+import static 
org.apache.ignite.internal.cli.commands.Options.Constants.PASSWORD_OPTION;
+import static 
org.apache.ignite.internal.cli.commands.Options.Constants.PASSWORD_OPTION_DESC;
+import static 
org.apache.ignite.internal.cli.commands.Options.Constants.PASSWORD_OPTION_SHORT;
+import static 
org.apache.ignite.internal.cli.commands.Options.Constants.USERNAME_OPTION;
+import static 
org.apache.ignite.internal.cli.commands.Options.Constants.USERNAME_OPTION_DESC;
+import static 
org.apache.ignite.internal.cli.commands.Options.Constants.USERNAME_OPTION_SHORT;
+
+import org.jetbrains.annotations.Nullable;
+import picocli.CommandLine.Option;
+
+/**
+ * Mixin class for connect command options.
+ */
+public class ConnectOptions {
+
+
+    @Option(names = {USERNAME_OPTION, USERNAME_OPTION_SHORT}, description = 
USERNAME_OPTION_DESC)
+    private String username;
+
+    @Option(names = {PASSWORD_OPTION, PASSWORD_OPTION_SHORT}, description = 
PASSWORD_OPTION_DESC)
+    private String password;

Review Comment:
   I've added @ArgGroup for username/password



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

Reply via email to