mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
- proper cli exists required for cloudflare proxy to dispose - updated cloudflare proxy to allow proxy options (e.g. remote) - updated config command to include proper required structure for the export on code mode
15 lines
473 B
TypeScript
15 lines
473 B
TypeScript
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) => {
|
|
const schema = getDefaultSchema();
|
|
console.info(options.pretty ? JSON.stringify(schema, null, 2) : JSON.stringify(schema));
|
|
process.exit(0);
|
|
});
|
|
};
|