mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-17 04:50:51 +00:00
9 lines
329 B
TypeScript
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)}`;
|
|
}
|