(args: string[])
| 1052 | } |
| 1053 | |
| 1054 | export function parseDoctorArgs(args: string[]): RunDoctorOptions { |
| 1055 | const rekeyV22DirIdentity = valueAfter(args, "--rekey-v22-dir-identity"); |
| 1056 | return { |
| 1057 | force: args.includes("--force"), |
| 1058 | issue: args.includes("--issue"), |
| 1059 | help: args.includes("--help") || args.includes("-h"), |
| 1060 | checkV22Backfill: args.includes("--check-v22-backfill"), |
| 1061 | retryV22Backfill: args.includes("--retry-v22-backfill"), |
| 1062 | ...(rekeyV22DirIdentity !== null ? { rekeyV22DirIdentity } : {}), |
| 1063 | }; |
| 1064 | } |
| 1065 | |
| 1066 | export function doctor(args: string[] = []): Promise<number> { |
| 1067 | return runDoctor(parseDoctorArgs(args)); |
no test coverage detected