(cmd: string, status: string, stdio: StdioOptions = 'ignore')
| 124 | } |
| 125 | |
| 126 | function runCommand(cmd: string, status: string, stdio: StdioOptions = 'ignore') { |
| 127 | const spinner = ora(status).start(); |
| 128 | try { |
| 129 | execSync(cmd, { stdio }); |
| 130 | spinner.succeed(); |
| 131 | } catch (e) { |
| 132 | spinner.fail(); |
| 133 | throw e; |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | function createVsCodeConfig() { |
| 138 | fs.mkdirSync('.vscode', { recursive: true }); |
no test coverage detected