Add NinjaAndshellEscapeListIncludingSpaces

Add a method that ninja and shell escapes each entry in a list
of strings as a single argument.

Test: escape_test.go
Change-Id: Iac05c64f1ae48cd6186f563790ea49b90618038d
This commit is contained in:
Colin Cross 2021-11-22 22:44:21 -08:00
parent 3a988df18a
commit 97eda8939b

View file

@ -114,6 +114,10 @@ func NinjaAndShellEscapeList(slice []string) []string {
return ShellEscapeList(NinjaEscapeList(slice))
}
func NinjaAndShellEscapeListIncludingSpaces(slice []string) []string {
return ShellEscapeListIncludingSpaces(NinjaEscapeList(slice))
}
func NinjaAndShellEscape(s string) string {
return ShellEscape(NinjaEscape(s))
}