MCPcopy Index your code
hub / github.com/teambit/bit / runRenderHandler

Method runRenderHandler

src/cli/command-runner.ts:57–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 private async runRenderHandler() {
58 if (!this.command.render) throw new Error('runRenderHandler expects command.render to be implemented');
59 const result = await this.command.render(this.args, this.flags);
60 loader.off();
61 const { waitUntilExit } = render(result);
62 await waitUntilExit();
63 return logger.exitAfterFlush(result.props.code, this.command.name);
64 }
65
66 private async runReportHandler() {
67 if (!this.command.report) throw new Error('runReportHandler expects command.report to be implemented');

Callers 1

runCommandMethod · 0.95

Calls 3

exitAfterFlushMethod · 0.80
renderMethod · 0.65
renderFunction · 0.50

Tested by

no test coverage detected