MCPcopy Create free account
hub / github.com/go-task/task / ToQuotedString

Function ToQuotedString

args/args.go:44–54  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

42}
43
44func ToQuotedString(args []string) (string, error) {
45 var quotedCliArgs []string
46 for _, arg := range args {
47 quotedCliArg, err := syntax.Quote(arg, syntax.LangBash)
48 if err != nil {
49 return "", err
50 }
51 quotedCliArgs = append(quotedCliArgs, quotedCliArg)
52 }
53 return strings.Join(quotedCliArgs, " "), nil
54}
55
56func splitVar(s string) (string, string) {
57 pair := strings.SplitN(s, "=", 2)

Callers 1

runFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…