unknowntpo commented on code in PR #6847:
URL: https://github.com/apache/gravitino/pull/6847#discussion_r2048037692
##########
clients/cli/src/main/java/org/apache/gravitino/cli/outputs/PlainFormat.java:
##########
@@ -273,4 +281,85 @@ public String getOutput(Column[] columns) {
return NEWLINE_JOINER.join(header, data.toString());
}
}
+
+ /**
+ * Formats tag details ({@link org.apache.gravitino.tag.Tag}) information.
Output format: name,
+ * comment
+ */
+ static final class TagDetailsPlainFormat extends PlainFormat<Tag> {
+
+ /**
+ * Creates a new {@link TagDetailsPlainFormat}.
+ *
+ * @param context The command context.
+ */
+ public TagDetailsPlainFormat(CommandContext context) {
+ super(context);
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public String getOutput(Tag tag) {
+ String header = COMMA_JOINER.join("name", "comment");
Review Comment:
Okay, but I notice that in `ColumnListPlainFormat`, we have headers.
--
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]