MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / tildify

Function tildify

src/installer/index.ts:594–598  ·  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

592 * lines. Pure cosmetic.
593 */
594function tildify(p: string): string {
595 const home = require('os').homedir();
596 if (p.startsWith(home + path.sep)) return '~' + p.substring(home.length);
597 return p;
598}
599
600async function resolveTargets(
601 clack: typeof import('@clack/prompts'),

Callers 2

runInstallerWithOptionsFunction · 0.85
runUninstallerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected