MCPcopy Create free account
hub / github.com/dim-an/cod / Quote

Function Quote

shells/quote.go:19–25  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

17import "strings"
18
19func Quote(args []string) string {
20 var quoted []string
21 for _, a := range args {
22 quoted = append(quoted, quoteArg(a))
23 }
24 return strings.Join(quoted, " ")
25}
26
27func quoteArg(arg string) string {
28 argBytes := []byte(arg)

Callers 6

daemonMainFunction · 0.92
listMainFunction · 0.92
RunCodCmdModifiedEnvMethod · 0.92
handleAddHelpPageMethod · 0.92
TestQuoteFunction · 0.85

Calls 1

quoteArgFunction · 0.85

Tested by 1

TestQuoteFunction · 0.68