shaofengshi commented on code in PR #5610:
URL: https://github.com/apache/gravitino/pull/5610#discussion_r1870540170
##########
clients/cli/src/main/java/org/apache/gravitino/cli/GravitinoCommandLine.java:
##########
@@ -742,4 +793,41 @@ public String getUrl() {
// Return the default localhost URL
return DEFAULT_URL;
}
+
+ /**
+ * Retrieves the Gravitinno authentication from the command line options or
the GRAVITINO_AUTH
+ * environment variable or the Gravitio config file.
+ *
+ * @return The Gravitinno authentication, or null if not found.
+ */
+ public String getAuth() {
+ GravitinoConfig config = new GravitinoConfig(null);
Review Comment:
This line can be moved to after lin 818
--
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]