feat: 增加 SealAI 官方规则 CSV 导出
This commit is contained in:
1 parent
382fc1a7ae
commit
f454d62be1
14 files changed
+143
-9
No files matched your search
@@ -327,6 +327,19 @@ export async function handleRulesCommand(
|
||||
if (action === "pull") {
|
||||
const version = resolveVersionOption(args, maybeName);
|
||||
const out = stringOption(args.options.out) ?? stringOption(args.options.file) ?? stringOption(args.options.f);
|
||||
if (booleanOption(args.options.official) === true) {
|
||||
if (version) {
|
||||
throw usageError("rules pull --official uses SealAI's official current-rules CSV export and cannot be combined with --version.");
|
||||
}
|
||||
await runCapability(
|
||||
"sealApprovalRulesExportCsv",
|
||||
client!,
|
||||
corp,
|
||||
{ out },
|
||||
outputOptions(args.options)
|
||||
);
|
||||
return;
|
||||
}
|
||||
await runCapability(
|
||||
"sealApprovalRulesPull",
|
||||
client!,
|
||||
|
||||
Reference in new issue
Block a user