MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / QuoteWords

Function QuoteWords

internal/shell/quote.go:28–34  ·  view source on GitHub ↗

QuoteWords ensures that s is interpreted by a shell as individual words.

(s ...string)

Source from the content-addressed store, hash-verified

26
27// QuoteWords ensures that s is interpreted by a shell as individual words.
28func 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}

Callers 3

reconcileRestoreJobMethod · 0.92
instanceYAMLFunction · 0.92
MakeDirectoriesFunction · 0.85

Calls 1

QuoteWordFunction · 0.85

Tested by

no test coverage detected