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

Function quote

pkg/search/query.go:286–291  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

284}
285
286func quote(s string) string {
287 if strings.ContainsAny(s, " \"\t\r\n") {
288 return fmt.Sprintf("%q", s)
289 }
290 return s
291}
292
293// formatQualifiers renders qualifiers into a plain query.
294//

Callers 4

formatSpecialQualifiersFunction · 0.85
groupWithORFunction · 0.85
formatQualifiersFunction · 0.85
formatKeywordsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected