Files
seal-use/src/cli/commands/source.ts
T

13 lines
502 B
TypeScript

import type { CorpConfig } from "../../core/config/types.js";
import { resolveLiveSealEnterpriseConfig } from "../../domains/seal/enterprise/source.js";
import { printJson } from "../printer.js";
export async function handleSourceCommand(action: string | undefined, corp: CorpConfig) {
if (action === "config") {
printJson(await resolveLiveSealEnterpriseConfig(corp));
return;
}
throw new Error(`Unknown source command: ${action ?? ""}. Run 'seal-use help' for available commands.`);
}