Skip to content

Commit 3663b51

Browse files
committed
feat: add outputFormat to SchemaCommandHandler
1 parent be7dd09 commit 3663b51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clients/cli/src/main/java/org/apache/gravitino/cli/SchemaCommandHandler.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class SchemaCommandHandler extends CommandHandler {
3535
private final String metalake;
3636
private final String catalog;
3737
private String schema;
38+
private final String outputFormat;
3839

3940
/**
4041
* Constructs a {@link SchemaCommandHandler} instance.
@@ -55,6 +56,7 @@ public SchemaCommandHandler(
5556
this.name = new FullName(line);
5657
this.metalake = name.getMetalakeName();
5758
this.catalog = name.getCatalogName();
59+
this.outputFormat = line.getOptionValue(GravitinoOptions.OUTPUT);
5860
}
5961

6062
@Override
@@ -132,7 +134,7 @@ private void handleDetailsCommand() {
132134
.handle();
133135
} else {
134136
gravitinoCommandLine
135-
.newSchemaDetails(url, ignore, metalake, catalog, schema)
137+
.newSchemaDetails(url, ignore, outputFormat, metalake, catalog, schema)
136138
.validate()
137139
.handle();
138140
}

0 commit comments

Comments
 (0)