()
| 11 | class 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; |
nothing calls this directly
no test coverage detected