(url: string, dest: string)
| 24 | } |
| 25 | |
| 26 | async downloadToPath(url: string, dest: string): Promise<void> { |
| 27 | const body = await this.download(url); |
| 28 | |
| 29 | const dir = path.dirname(dest); |
| 30 | if (!fs.existsSync(dir)) { |
| 31 | fs.mkdirSync(dir, { recursive: true }); |
| 32 | } |
| 33 | |
| 34 | await fs.promises.writeFile(dest, new Uint8Array(body)); |
| 35 | } |
| 36 | |
| 37 | async runShell( |
| 38 | guide: string, |
no test coverage detected