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

Function relativePathOrAbsolute

src/cli/commands/setup.ts:147–154  ·  view source on GitHub ↗
(absolutePath: string, cwd: string)

Source from the content-addressed store, hash-verified

145}
146
147function relativePathOrAbsolute(absolutePath: string, cwd: string): string {
148 const relative = path.relative(cwd, absolutePath);
149 if (relative.length > 0 && !relative.startsWith('..') && !path.isAbsolute(relative)) {
150 return relative;
151 }
152
153 return absolutePath;
154}
155
156function normalizeExistingDefaults(config?: ProjectConfig): {
157 projectPath?: string;

Callers 2

selectProjectChoiceFunction · 0.85
runSetupWizardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected