Skip to content

Commit 04c4bca

Browse files
committed
refactor(cli): lazy load command catalog in export-schema command
1 parent 5540332 commit 04c4bca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/src/commands/config/export-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { Config } from "bailian-cli-core";
33
import type { GlobalFlags } from "bailian-cli-core";
44
import { BailianError } from "bailian-cli-core";
55
import { ExitCode } from "bailian-cli-core";
6-
import { loadCommandCatalog } from "../../load-commands.ts";
76

87
/**
98
* Commands that are infrastructure/auth-related and not suitable as Agent tools.
@@ -23,6 +22,7 @@ export default defineCommand({
2322
],
2423
examples: ["bl config export-schema", 'bl config export-schema --command "video generate"'],
2524
async run(config: Config, flags: GlobalFlags) {
25+
const { loadCommandCatalog } = await import("../../load-commands.ts");
2626
const { commands } = await loadCommandCatalog();
2727
const targetCommand = flags.command as string | undefined;
2828

0 commit comments

Comments
 (0)