refactor: centralize config update logging

This commit is contained in:
Peter Steinberger
2026-01-23 04:01:11 +00:00
parent 246ee490f6
commit e750ad5e75
20 changed files with 73 additions and 70 deletions

View File

@@ -1,5 +1,5 @@
import { visibleWidth } from "./ansi.js";
import { shortenHomeInString } from "../utils.js";
import { displayString } from "../utils.js";
type Align = "left" | "right" | "center";
@@ -172,7 +172,7 @@ export function renderTable(opts: RenderTableOptions): string {
const rows = opts.rows.map((row) => {
const next: Record<string, string> = {};
for (const [key, value] of Object.entries(row)) {
next[key] = shortenHomeInString(value);
next[key] = displayString(value);
}
return next;
});