(url: string)
| 14 | |
| 15 | export class DevSetupHelper { |
| 16 | async download(url: string): Promise<ArrayBuffer> { |
| 17 | return new LoadingIndicator(async () => { |
| 18 | const response = await fetch(url); |
| 19 | |
| 20 | return response.arrayBuffer(); |
| 21 | }) |
| 22 | .setText(`${wrapInColor('Downloading', ANSI_COLORS.YELLOW_COLOR)} ${url}...`) |
| 23 | .show(); |
| 24 | } |
| 25 | |
| 26 | async downloadToPath(url: string, dest: string): Promise<void> { |
| 27 | const body = await this.download(url); |
no test coverage detected