waukin commented on code in PR #5606: URL: https://github.com/apache/gravitino/pull/5606#discussion_r1858708524
########## clients/cli/src/main/java/org/apache/gravitino/cli/commands/Command.java: ########## @@ -69,4 +77,17 @@ 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 && outputFormat.equals("table")) { + TableFormat.output(entity); + } else { Review Comment: If the user does not specify the output , the default is PlainFormat. Static variables are used to store "table" and "plain"; this has been fixed in commit: https://github.com/apache/gravitino/pull/5606/commits/675bf45496db13a65dd1d5238b4dd20eb44f08de -- 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