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:
parent
3a988df18a
commit
97eda8939b
1 changed files with 4 additions and 0 deletions
|
@ -114,6 +114,10 @@ func NinjaAndShellEscapeList(slice []string) []string {
|
||||||
return ShellEscapeList(NinjaEscapeList(slice))
|
return ShellEscapeList(NinjaEscapeList(slice))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func NinjaAndShellEscapeListIncludingSpaces(slice []string) []string {
|
||||||
|
return ShellEscapeListIncludingSpaces(NinjaEscapeList(slice))
|
||||||
|
}
|
||||||
|
|
||||||
func NinjaAndShellEscape(s string) string {
|
func NinjaAndShellEscape(s string) string {
|
||||||
return ShellEscape(NinjaEscape(s))
|
return ShellEscape(NinjaEscape(s))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue