2025-12-30 15:06:41 +09:00
|
|
|
import type { DoctorOptions } from "./types"
|
|
|
|
|
import { runDoctor } from "./runner"
|
|
|
|
|
|
2026-02-13 17:29:38 +09:00
|
|
|
export async function doctor(options: DoctorOptions = { mode: "default" }): Promise<number> {
|
2025-12-30 15:06:41 +09:00
|
|
|
const result = await runDoctor(options)
|
|
|
|
|
return result.exitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export * from "./types"
|
|
|
|
|
export { runDoctor } from "./runner"
|
2026-02-13 17:29:38 +09:00
|
|
|
export { formatDoctorOutput, formatJsonOutput } from "./formatter"
|