mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 20:37:21 +00:00
public commit
This commit is contained in:
12
app/src/cli/commands/schema.ts
Normal file
12
app/src/cli/commands/schema.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { getDefaultSchema } from "modules/ModuleManager";
|
||||
import type { CliCommand } from "../types";
|
||||
|
||||
export const schema: CliCommand = (program) => {
|
||||
program
|
||||
.command("schema")
|
||||
.description("get schema")
|
||||
.option("--pretty", "pretty print")
|
||||
.action((options) => {
|
||||
console.log(getDefaultSchema(options.pretty));
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user