MCPcopy Create free account
hub / github.com/cortexkit/magic-context / parseDoctorArgs

Function parseDoctorArgs

packages/cli/src/commands/doctor-pi.ts:1054–1064  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

1052}
1053
1054export 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
1066export function doctor(args: string[] = []): Promise<number> {
1067 return runDoctor(parseDoctorArgs(args));

Callers 2

doctor-pi.test.tsFile · 0.90
doctorFunction · 0.85

Calls 1

valueAfterFunction · 0.70

Tested by

no test coverage detected