mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 07:41:40 +00:00
CLI: dedupe config validate errors and expose allowed values
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { ProgressReporter } from "../../cli/progress.js";
|
||||
import { formatConfigIssueLine } from "../../config/issue-format.js";
|
||||
import { resolveGatewayLogPaths } from "../../daemon/launchd.js";
|
||||
import { formatPortDiagnostics } from "../../infra/ports.js";
|
||||
import {
|
||||
@@ -88,7 +89,7 @@ export async function appendStatusAllDiagnosis(params: {
|
||||
issues.findIndex((x) => x.path === issue.path && x.message === issue.message) === index,
|
||||
);
|
||||
for (const issue of uniqueIssues.slice(0, 12)) {
|
||||
lines.push(` - ${issue.path}: ${issue.message}`);
|
||||
lines.push(` ${formatConfigIssueLine(issue, "-")}`);
|
||||
}
|
||||
if (uniqueIssues.length > 12) {
|
||||
lines.push(` ${muted(`… +${uniqueIssues.length - 12} more`)}`);
|
||||
|
||||
Reference in New Issue
Block a user