MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / runDoctorCommand

Function runDoctorCommand

apps/kimi-code/src/cli/sub/doctor.ts:106–113  ·  view source on GitHub ↗
(
  deps: Partial<DoctorDeps> | undefined,
  options: DoctorOptions,
)

Source from the content-addressed store, hash-verified

104}
105
106async function runDoctorCommand(
107 deps: Partial<DoctorDeps> | undefined,
108 options: DoctorOptions,
109): Promise<void> {
110 const resolved = resolveDeps(deps);
111 const code = await handleDoctor(resolved, options);
112 if (code !== 0) resolved.exit(code);
113}
114
115function resolveDeps(deps: Partial<DoctorDeps> | DoctorDeps | undefined): ResolvedDoctorDeps {
116 let configRpc = deps?.configRpc;

Callers 1

registerDoctorCommandFunction · 0.85

Calls 3

handleDoctorFunction · 0.85
resolveDepsFunction · 0.70
exitMethod · 0.65

Tested by

no test coverage detected