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

Method gitCloneProject

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

Source from the content-addressed store, hash-verified

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}

Callers 1

initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected