mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 01:31:08 +00:00
fix(commands): split doctor prompt option types
This commit is contained in:
@@ -6,17 +6,10 @@ import {
|
||||
shouldAutoApproveDoctorFix,
|
||||
type DoctorRepairMode,
|
||||
} from "./doctor-repair-mode.js";
|
||||
import type { DoctorOptions } from "./doctor.types.js";
|
||||
import { guardCancel } from "./onboard-helpers.js";
|
||||
|
||||
export type DoctorOptions = {
|
||||
workspaceSuggestions?: boolean;
|
||||
yes?: boolean;
|
||||
nonInteractive?: boolean;
|
||||
deep?: boolean;
|
||||
repair?: boolean;
|
||||
force?: boolean;
|
||||
generateGatewayToken?: boolean;
|
||||
};
|
||||
export type { DoctorOptions } from "./doctor.types.js";
|
||||
|
||||
export type DoctorPrompter = {
|
||||
confirm: (params: Parameters<typeof confirm>[0]) => Promise<boolean>;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { isTruthyEnvValue } from "../infra/env.js";
|
||||
import type { DoctorOptions } from "./doctor-prompter.js";
|
||||
import type { DoctorOptions } from "./doctor.types.js";
|
||||
|
||||
export type DoctorRepairMode = {
|
||||
shouldRepair: boolean;
|
||||
|
||||
9
src/commands/doctor.types.ts
Normal file
9
src/commands/doctor.types.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export type DoctorOptions = {
|
||||
workspaceSuggestions?: boolean;
|
||||
yes?: boolean;
|
||||
nonInteractive?: boolean;
|
||||
deep?: boolean;
|
||||
repair?: boolean;
|
||||
force?: boolean;
|
||||
generateGatewayToken?: boolean;
|
||||
};
|
||||
Reference in New Issue
Block a user