Files
openclaw/src/daemon/output.ts
2026-02-15 03:41:11 +00:00

9 lines
329 B
TypeScript

import { colorize, isRich, theme } from "../terminal/theme.js";
export const toPosixPath = (value: string) => value.replace(/\\/g, "/");
export function formatLine(label: string, value: string): string {
const rich = isRich();
return `${colorize(rich, theme.muted, `${label}:`)} ${colorize(rich, theme.command, value)}`;
}