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

Method format

internal/cmd/formatting.go:78–83  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

76)
77
78func (s style) format(value string) string {
79 if s == plain || colorDisabled {
80 return value
81 }
82 return "\033[" + string(s) + "m" + value + "\033[0m"
83}
84
85func truncate(s string, maxWidth int) string {
86 if runewidth.StringWidth(s) <= maxWidth {

Callers 3

renderRootHelpFunction · 0.80
renderCommandHelpFunction · 0.80
printMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected