mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-09 10:53:36 +02:00
16 lines
387 B
TypeScript
16 lines
387 B
TypeScript
import { loadAndMaybeMigrateDoctorConfig } from "../src/commands/doctor-config-flow.js";
|
|
import { writeConfigFile } from "../src/config/config.js";
|
|
|
|
const result = await loadAndMaybeMigrateDoctorConfig({
|
|
options: {
|
|
nonInteractive: true,
|
|
repair: true,
|
|
yes: true,
|
|
},
|
|
confirm: async () => false,
|
|
});
|
|
|
|
if (result.shouldWriteConfig) {
|
|
await writeConfigFile(result.cfg);
|
|
}
|