MCPcopy Create free account
hub / github.com/afar1/fieldtheory-cli / parseNavigationPlace

Function parseNavigationPlace

src/cli.ts:336–342  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

334}
335
336function parseNavigationPlace(value: string): NavigationPlace {
337 const place = value.toLowerCase();
338 if (listNavigationPlaces().some((candidate) => candidate.name === place)) {
339 return place as NavigationPlace;
340 }
341 throw new Error(`Unknown Field Theory place: ${value}`);
342}
343
344// ── Update checker ────────────────────────────────────────────────────────
345

Callers 1

buildCliFunction · 0.85

Calls 1

listNavigationPlacesFunction · 0.85

Tested by

no test coverage detected