Skip to content

Commit

Permalink
feat: add outputFormat to SchemaCommandHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
waukin committed Jan 21, 2025
1 parent a69ae8e commit 090709b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class SchemaCommandHandler extends CommandHandler {
private final String metalake;
private final String catalog;
private String schema;
private final String outputFormat;

/**
* Constructs a {@link SchemaCommandHandler} instance.
Expand All @@ -55,6 +56,7 @@ public SchemaCommandHandler(
this.name = new FullName(line);
this.metalake = name.getMetalakeName();
this.catalog = name.getCatalogName();
this.outputFormat = line.getOptionValue(GravitinoOptions.OUTPUT);
}

@Override
Expand Down Expand Up @@ -132,7 +134,7 @@ private void handleDetailsCommand() {
.handle();
} else {
gravitinoCommandLine
.newSchemaDetails(url, ignore, metalake, catalog, schema)
.newSchemaDetails(url, ignore, outputFormat, metalake, catalog, schema)
.validate()
.handle();
}
Expand Down

0 comments on commit 090709b

Please sign in to comment.