mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-10 00:31:22 +00:00
refactor: dedupe cli config cron and install flows
This commit is contained in:
@@ -21,6 +21,7 @@ import { theme } from "../terminal/theme.js";
|
||||
import { formatHealthChannelLines, type HealthSummary } from "./health.js";
|
||||
import { resolveControlUiLinks } from "./onboard-helpers.js";
|
||||
import { statusAllCommand } from "./status-all.js";
|
||||
import { groupChannelIssuesByChannel } from "./status-all/channel-issues.js";
|
||||
import { formatGatewayAuthUsed } from "./status-all/format.js";
|
||||
import { getDaemonStatusSummary, getNodeDaemonStatusSummary } from "./status.daemon.js";
|
||||
import {
|
||||
@@ -500,19 +501,7 @@ export async function statusCommand(
|
||||
|
||||
runtime.log("");
|
||||
runtime.log(theme.heading("Channels"));
|
||||
const channelIssuesByChannel = (() => {
|
||||
const map = new Map<string, typeof channelIssues>();
|
||||
for (const issue of channelIssues) {
|
||||
const key = issue.channel;
|
||||
const list = map.get(key);
|
||||
if (list) {
|
||||
list.push(issue);
|
||||
} else {
|
||||
map.set(key, [issue]);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
})();
|
||||
const channelIssuesByChannel = groupChannelIssuesByChannel(channelIssues);
|
||||
runtime.log(
|
||||
renderTable({
|
||||
width: tableWidth,
|
||||
|
||||
Reference in New Issue
Block a user