printContributions
uses tcmts.cli.style.dim, which uses node:util
import { STATUS, when } from "#codebase/tcmts/cli/contributions"; import { bold, dim } from "#codebase/tcmts/cli/style"; import type { Contribution } from "#codebase/tcmts/store"; export function printContributions(list: Contribution[], where: string) { if (!list.length) return console.log(dim(`no contributions on ${where}`)); for (const c of list) { console.log(`${bold(`#${c.id}`.padEnd(5))} ${STATUS[c.status](c.status.padEnd(7))} ${c.title} ${dim(`${c.source} → ${c.target} · ${c.author} · ${when(c.updated)}`)}`); } }
uses
- tcmts.cli.contributions.STATUS
- tcmts.cli.contributions.when
- tcmts.cli.style.bold
- tcmts.cli.style.dim
- tcmts.store.Contribution