MCPcopy Create free account
hub / github.com/Serverless-Devs/Serverless-Devs / executeInit

Method executeInit

src/command/init/manager.ts:176–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 => {

Callers 1

initMethod · 0.95

Calls 1

getProjectNameMethod · 0.95

Tested by

no test coverage detected