MCPcopy Index your code
hub / github.com/anomalyco/opencode / renderRow

Function renderRow

packages/opencode/src/cli/cmd/stats.ts:295–300  ·  view source on GitHub ↗
(label: string, value: string)

Source from the content-addressed store, hash-verified

293 const width = 56
294
295 function renderRow(label: string, value: string): string {
296 const availableWidth = width - 1
297 const paddingNeeded = availableWidth - label.length - value.length
298 const padding = Math.max(0, paddingNeeded)
299 return `│${label}${" ".repeat(padding)}${value} │`
300 }
301
302 // Overview section
303 console.log("┌────────────────────────────────────────────────────────┐")

Callers 1

displayStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected