MCPcopy Index your code
hub / github.com/upstash/context7 / getTargetDirFromSelection

Function getTargetDirFromSelection

packages/cli/src/utils/ide.ts:281–289  ·  view source on GitHub ↗
(ide: IDE, scope: Scope)

Source from the content-addressed store, hash-verified

279}
280
281export function getTargetDirFromSelection(ide: IDE, scope: Scope): string {
282 if (ide === "universal") {
283 return getUniversalDir(scope);
284 }
285 if (scope === "global") {
286 return join(homedir(), IDE_GLOBAL_PATHS[ide]);
287 }
288 return join(process.cwd(), IDE_PATHS[ide]);
289}

Callers 1

removeCommandFunction · 0.85

Calls 1

getUniversalDirFunction · 0.85

Tested by

no test coverage detected