Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/cli/cli
/ shellQuote
Function
shellQuote
pkg/cmd/auth/shared/gitcredentials/helper_config.go:119–124 ·
view source on GitHub ↗
(s string)
Source
from the content-addressed store, hash-verified
117
}
118
119
func
shellQuote(s string) string {
120
if
strings.ContainsAny(s,
" $\\"
) {
121
return
"'"
+ s +
"'"
122
}
123
return
s
124
}
Callers
2
ConfigureOurs
Method · 0.85
ConfigureOurs
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected