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

Function readStdin

internal/cmd/formatting.go:100–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98}
99
100func markdownSafeText(value string) string {
101 const punctuation = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
102 var safe strings.Builder
103 for _, r := range terminal.SanitizeLine(value) {
104 if strings.ContainsRune(punctuation, r) {
105 safe.WriteByte('\\')
106 }
107 safe.WriteRune(r)
108 }
109 return safe.String()

Callers 4

runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected