Remove Python from report validation and rendering
This commit is contained in:
1 parent
c1a5cc20e9
commit
fb7948307c
19 files changed
+743
-90
No files matched your search
+3
-2
@@ -61,7 +61,7 @@ export const VALUE_FLAGS = new Set([
|
||||
"out-dir", "outDir", "outgoing-result-webhook", "outgoingResultWebhook", "output", "output-file",
|
||||
"outputFile", "p", "package-id", "package-ids", "packageId", "packageIds",
|
||||
"path", "phone", "policyId", "poll-interval", "pollInterval", "port",
|
||||
"prod", "prod-corp", "prodCorp", "purpose", "python", "q", "query",
|
||||
"prod", "prod-corp", "prodCorp", "purpose", "q", "query",
|
||||
"record-id", "record-ids", "recordId", "recordIds", "reject-node", "rejectNode", "rejection-num", "rejectionNum",
|
||||
"reviewed-by", "reviewedBy",
|
||||
"report-id",
|
||||
@@ -115,7 +115,7 @@ export const KNOWN_FLAGS = new Set([
|
||||
"outgoing-result-webhook", "outgoingResultWebhook", "output", "output-file", "outputFile", "overwrite",
|
||||
"p", "package-id", "package-ids", "packageId", "packageIds", "path",
|
||||
"phone", "plain", "policyId", "poll-interval", "pollInterval", "port",
|
||||
"prod", "prod-corp", "prodCorp", "publish", "purpose", "python", "q",
|
||||
"prod", "prod-corp", "prodCorp", "publish", "purpose", "q",
|
||||
"query", "quiet", "r", "recode", "record-id", "record-ids",
|
||||
"recordId", "recordIds", "refresh", "refresh-if-missing", "reject-node", "rejectNode", "rejection-num", "rejectionNum", "repo",
|
||||
"report-id",
|
||||
@@ -169,6 +169,7 @@ export function parseArgs(argv: string[]): ParsedArgs {
|
||||
const eqIdx = raw.indexOf("=");
|
||||
const key = raw.slice(0, eqIdx);
|
||||
const val = raw.slice(eqIdx + 1);
|
||||
if (key === "python") throw usageError("--python 已移除:报告工具不再依赖 Python。");
|
||||
options[key] = val;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user