MCPcopy
hub / github.com/colbymchenry/codegraph / tildify

Function tildify

src/installer/index.ts:461–465  ·  view source on GitHub ↗

* Replace home-directory prefix in a path with `~/` for cleaner log * lines. Pure cosmetic.

(p: string)

Source from the content-addressed store, hash-verified

459 * lines. Pure cosmetic.
460 */
461function tildify(p: string): string {
462 const home = require('os').homedir();
463 if (p.startsWith(home + path.sep)) return '~' + p.substring(home.length);
464 return p;
465}
466
467async function resolveTargets(
468 clack: typeof import('@clack/prompts'),

Callers 2

runInstallerWithOptionsFunction · 0.85
runUninstallerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected