(s: string)
| 195 | } |
| 196 | |
| 197 | function stripQuotes(s: string): string { |
| 198 | if ((s.startsWith('"') && s.endsWith('"')) || (s.startsWith("'") && s.endsWith("'"))) { |
| 199 | return s.slice(1, -1); |
| 200 | } |
| 201 | return s; |
| 202 | } |
| 203 | |
| 204 | /** Interpolate the template body with the user-supplied args + builtin tokens. */ |
| 205 | export function renderTemplate(template: string, args: string, ctx: { cwd: string }): string { |