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

Method init

src/command/cli/help.ts:11–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 private logger = logger;
10 constructor(private program: Command) {}
11 async init() {
12 const {
13 _: [, ...raw],
14 } = utils.parseArgv(process.argv.slice(2));
15 this.raw = raw;
16 if (raw.length === 1) {
17 return await this.showRaw1();
18 }
19 if (raw.length === 2) {
20 return await this.showRaw2();
21 }
22 return await this.showRaw3();
23 }
24 async showRaw1() {
25 const [componentName] = this.raw;
26 const componentCommand = this.program.command(componentName).allowUnknownOption();

Callers 4

preRunFunction · 0.45
onboardingFunction · 0.45
rootFunction · 0.45
index.tsFile · 0.45

Calls 3

showRaw1Method · 0.95
showRaw2Method · 0.95
showRaw3Method · 0.95

Tested by

no test coverage detected