rows

tcmts.cli.help.rows · #xfyk46eu · term · runs on the server

uses tcmts.cli.style.cyan, which uses node:util

import { cyan } from "#codebase/tcmts/cli/style";

export function rows(items: [string, string][]): string[] {
  const width = Math.max(...items.map(([l]) => l.length));
  return items.map(([l, d]) => `  ${cyan(l.padEnd(width))}  ${d}`);
}

uses

used by