MCPcopy Index your code
hub / github.com/cloudgraphdev/cli / run

Method run

src/commands/serve.ts:20–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 static args = Command.args
19
20 async run(): Promise<void> {
21 const storageEngine = await this.getStorageEngine()
22 const storageRunning = await storageEngine.healthCheck()
23 if (!storageRunning) {
24 const msg = `Storage engine check at ${storageEngine.host} FAILED canceling SERVE`
25 this.logger.error(msg)
26 throw new Error(msg)
27 }
28 await this.startQueryEngine()
29 }
30}

Callers

nothing calls this directly

Calls 1

healthCheckMethod · 0.80

Tested by

no test coverage detected