()
| 196 | } |
| 197 | |
| 198 | private async gitCloneProject() { |
| 199 | return new Promise(resolve => { |
| 200 | spawn('git', ['clone', this.template], { |
| 201 | shell: true, |
| 202 | cwd: this.options.dir ? this.options.dir : './', |
| 203 | stdio: ['ignore', 'inherit', 'inherit'], |
| 204 | }).on('close', code => resolve({ code })); |
| 205 | }); |
| 206 | } |
| 207 | } |