MCPcopy
hub / github.com/teambit/bit / writeAndExit

Method writeAndExit

src/cli/command-runner.ts:75–77  ·  view source on GitHub ↗
(data: string, exitCode: number)

Source from the content-addressed store, hash-verified

73 }
74
75 private writeAndExit(data: string, exitCode: number) {
76 return process.stdout.write(data, () => logger.exitAfterFlush(exitCode, this.command.name));
77 }
78
79 private async runMigrateIfNeeded(): Promise<any> {
80 // @ts-ignore LegacyCommandAdapter has .migration

Callers 2

runJsonHandlerMethod · 0.95
runReportHandlerMethod · 0.95

Calls 2

exitAfterFlushMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected