






























@@ -27,7 +27,12 @@ export function registerMaintenanceCommands(program: Command) {
2727)
2828.option("--deep", "Scan system services for extra gateway installs", false)
2929.option("--lint", "Run read-only health checks and report findings", false)
30-.option("--json", "With --lint: emit JSON findings instead of human output", false)
30+.option(
31+"--post-upgrade",
32+"Emit plugin-compat findings only (machine-readable with --json)",
33+false,
34+)
35+.option("--json", "With --lint or --post-upgrade: emit machine-readable JSON output", false)
3136.option(
3237"--severity-min <level>",
3338"With --lint: drop findings below this severity (info|warning|error)",
@@ -84,6 +89,8 @@ export function registerMaintenanceCommands(program: Command) {
8489generateGatewayToken: Boolean(opts.generateGatewayToken),
8590allowExec: Boolean(opts.allowExec),
8691deep: Boolean(opts.deep),
92+postUpgrade: Boolean(opts.postUpgrade),
93+json: Boolean(opts.json),
8794});
8895defaultRuntime.exit(0);
8996});
@@ -168,12 +175,13 @@ export function registerMaintenanceCommands(program: Command) {
168175169176function hasLintOnlyDoctorOptions(opts: {
170177readonly json?: boolean;
178+readonly postUpgrade?: boolean;
171179readonly severityMin?: unknown;
172180readonly skip?: unknown;
173181readonly only?: unknown;
174182}): boolean {
175183return (
176-opts.json === true ||
184+(opts.json === true && opts.postUpgrade !== true) ||
177185typeof opts.severityMin === "string" ||
178186(Array.isArray(opts.skip) && opts.skip.length > 0) ||
179187(Array.isArray(opts.only) && opts.only.length > 0)
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。