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

Method init

src/command/custom/help.ts:13–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11class Help {
12 constructor(private program: Command, private spec = {} as ISpec) {}
13 async init() {
14 const argv = process.argv.slice(2);
15 const { _: raw } = parseArgv(argv);
16 // s -h
17 if (raw.length === 0) return await this.showHelp();
18 if (raw.length === 1) return await this.showRaw1Help();
19 if (raw.length > 1) return await this.showRaw2Help();
20 }
21 // s -h
22 async showHelp() {
23 const { steps, components } = this.spec;

Callers

nothing calls this directly

Calls 3

showHelpMethod · 0.95
showRaw1HelpMethod · 0.95
showRaw2HelpMethod · 0.95

Tested by

no test coverage detected