MCPcopy Index your code
hub / github.com/Fission-AI/OpenSpec / normalizeType

Method normalizeType

src/commands/validate.ts:73–78  ·  view source on GitHub ↗
(value?: string)

Source from the content-addressed store, hash-verified

71 }
72
73 private normalizeType(value?: string): ItemType | undefined {
74 if (!value) return undefined;
75 const v = value.toLowerCase();
76 if (v === 'change' || v === 'spec') return v;
77 return undefined;
78 }
79
80 private async runInteractiveSelector(root: ResolvedOpenSpecRoot, opts: { strict: boolean; json: boolean; concurrency?: string }): Promise<void> {
81 const { select } = await import('@inquirer/prompts');

Callers 1

executeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected