MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / expandHostPath

Function expandHostPath

packages/setupWizard/src/localRepos.ts:25–31  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

23]);
24
25function expandHostPath(p: string): string {
26 const trimmed = p.trim();
27 if (trimmed.startsWith('~')) {
28 return resolve(join(homedir(), trimmed.slice(1)));
29 }
30 return resolve(trimmed);
31}
32
33async function findGitRepos(root: string, maxDepth: number): Promise<string[]> {
34 const repos: string[] = [];

Callers 1

collectLocalReposConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected