MCPcopy
hub / github.com/arktypeio/arktype / displayTableHeader

Function displayTableHeader

ark/attest/cli/trace.ts:640–655  ·  view source on GitHub ↗
(columns: string[])

Source from the content-addressed store, hash-verified

638}
639
640const displayTableHeader = (columns: string[]): void => {
641 const headerRow = [
642 columns[0].padEnd(4),
643 columns[1].padEnd(20),
644 columns[2].padEnd(15),
645 ...columns.slice(3)
646 ].join(" | ")
647 const separatorRow = [
648 "-".repeat(4),
649 "-".repeat(20),
650 "-".repeat(15),
651 ...columns.slice(3).map(col => "-".repeat(col.length))
652 ].join("-|-")
653 outputCapture.write(headerRow)
654 outputCapture.write(separatorRow)
655}
656
657const displayGroupedSummary = (functions: FunctionStats[]): void => {
658 displayTableHeader([

Callers 2

displayIndividualSummaryFunction · 0.85
displayGroupedSummaryFunction · 0.85

Calls 2

writeMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…