| 174 | } |
| 175 | |
| 176 | private async executeInit() { |
| 177 | const appPath = await loadApplication(this.template, { |
| 178 | dest: this.options.dir && path.isAbsolute(this.options.dir) ? path.dirname(this.options.dir) : process.cwd(), |
| 179 | logger, |
| 180 | projectName: await this.getProjectName(), |
| 181 | parameters: this.options.parameters, |
| 182 | appName: this.options.appName, |
| 183 | access: this.options.access, |
| 184 | uri: this.options.uri, |
| 185 | y: this.options.y, |
| 186 | overwrite: this.options.overwrite, |
| 187 | }); |
| 188 | |
| 189 | if (appPath) { |
| 190 | logger.write(chalk.gray(`\nThanks for using Serverless-Devs`)); |
| 191 | logger.write(chalk.gray(`You could [cd ${appPath}] and enjoy your serverless journey!`)); |
| 192 | logger.write(chalk.gray(`If you need help for this example, you can use [s -h] after you enter folder.\n`)); |
| 193 | } |
| 194 | |
| 195 | return { appPath }; |
| 196 | } |
| 197 | |
| 198 | private async gitCloneProject() { |
| 199 | return new Promise(resolve => { |