(args []string)
| 42 | } |
| 43 | |
| 44 | func 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 | |
| 56 | func splitVar(s string) (string, string) { |
| 57 | pair := strings.SplitN(s, "=", 2) |
no outgoing calls
no test coverage detected
searching dependent graphs…