(strings: TemplateStringsArray, ...values: ShellValue[])
| 93 | // and all — and only `${...}` substitutions are escaped. See the file |
| 94 | // header for the interpolation rules. |
| 95 | export function sh(strings: TemplateStringsArray, ...values: ShellValue[]): string { |
| 96 | const parts = strings.raw; |
| 97 | let out = parts[0]; |
| 98 | for (let i = 0; i < values.length; i++) { |
| 99 | out += interpolate(values[i]) + parts[i + 1]; |
| 100 | } |
| 101 | return out; |
| 102 | } |
no test coverage detected