xunliu commented on code in PR #5606:
URL: https://github.com/apache/gravitino/pull/5606#discussion_r1862245855


##########
clients/cli/src/main/java/org/apache/gravitino/cli/commands/Command.java:
##########
@@ -69,4 +79,19 @@ protected GravitinoAdminClient buildAdminClient() {
       return GravitinoAdminClient.builder(url).build();
     }
   }
+
+  /**
+   * Outputs the entity to the console.
+   *
+   * @param entity The entity to output.
+   */
+  protected <T> void output(T entity) {
+    if (outputFormat != null) {
+      if (outputFormat.equals(OUTPUT_FORMAT_TABLE)) {
+        TableFormat.output(entity);
+      } else if (outputFormat.equals(OUTPUT_FORMAT_PLAIN)) {
+        PlainFormat.output(entity);
+      }
+    }

Review Comment:
   @waukin I think this has a problem.
   If no output format is specified, will nothing be output? 
   We should default use Plain format to output.
   Please check it.



-- 
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: commits-unsubscr...@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to