QuoteWords ensures that s is interpreted by a shell as individual words.
(s ...string)
| 26 | |
| 27 | // QuoteWords ensures that s is interpreted by a shell as individual words. |
| 28 | func QuoteWords(s ...string) []string { |
| 29 | quoted := make([]string, len(s)) |
| 30 | for i := range s { |
| 31 | quoted[i] = QuoteWord(s[i]) |
| 32 | } |
| 33 | return quoted |
| 34 | } |
no test coverage detected