MCPcopy Create free account
hub / github.com/basecamp/hey-cli / updateColumnWidths

Method updateColumnWidths

internal/cmd/formatting.go:61–68  ·  view source on GitHub ↗
(row []string)

Source from the content-addressed store, hash-verified

59 if rownum == 0 {
60 cellStyle = italic
61 }
62 if rownum > 0 && i == 0 {
63 cellStyle = bold
64 }
65
66 pad := max(t.columnWidths[i]-runewidth.StringWidth(cell), 0)
67 fmt.Fprintf(t.w, "%s%s ", cellStyle.format(cell), strings.Repeat(" ", pad))
68 }
69 fmt.Fprintln(t.w)
70 }
71}

Callers 1

addRowMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected