MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / resolvePathFromCwd

Function resolvePathFromCwd

src/utils/path.ts:34–42  ·  view source on GitHub ↗
(
  pathValue: string | undefined,
  cwd: string = process.cwd(),
)

Source from the content-addressed store, hash-verified

32export function resolvePathFromCwd(pathValue: string, cwd?: string): string;
33export function resolvePathFromCwd(pathValue: string | undefined, cwd?: string): string | undefined;
34export function resolvePathFromCwd(
35 pathValue: string | undefined,
36 cwd: string = process.cwd(),
37): string | undefined {
38 if (pathValue === undefined) {
39 return undefined;
40 }
41 return path.resolve(cwd, expandHomePrefix(pathValue));
42}

Callers 9

executeXcodeBuildCommandFunction · 0.90
normalizePathValueFunction · 0.90
path.test.tsFile · 0.90
resolveTargetsFunction · 0.90
collectInitSelectionFunction · 0.90
promptCustomPathFunction · 0.90

Calls 2

expandHomePrefixFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected