MCPcopy Create free account
hub / github.com/cli/cli / writeDescription

Function writeDescription

script/ghmock/schemacmd.go:602–606  ·  view source on GitHub ↗
(w io.Writer, text string)

Source from the content-addressed store, hash-verified

600}
601
602func writeDescription(w io.Writer, text string) {
603 if text = strings.TrimSpace(text); text != "" {
604 fmt.Fprintln(w, text)
605 }
606}
607
608func firstLine(text string) string {
609 line, _, _ := strings.Cut(strings.TrimSpace(text), "\n")

Callers 3

writeGraphQLTypeFunction · 0.85
writeGraphQLFieldFunction · 0.85
describeRESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected