MCPcopy Create free account
hub / github.com/code-pushup/cli / formatObjectValue

Function formatObjectValue

packages/cli/src/lib/implementation/formatting.ts:15–23  ·  view source on GitHub ↗
(opts: T, propName: keyof T)

Source from the content-addressed store, hash-verified

13}
14
15export function formatObjectValue<T>(opts: T, propName: keyof T) {
16 const description = opts[propName];
17 return {
18 ...opts,
19 ...(typeof description === 'string' && {
20 [propName]: descriptionStyle(description),
21 }),
22 };
23}
24
25export function formatNestedValues<T>(
26 options: Record<string, T>,

Callers 3

yargsCliFunction · 0.85
formatNestedValuesFunction · 0.85

Calls 1

descriptionStyleFunction · 0.85

Tested by

no test coverage detected