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

Function tildify

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

613 * lines. Pure cosmetic.
614 */
615function tildify(p: string): string {
616 const home = require('os').homedir();
617 if (p.startsWith(home + path.sep)) return '~' + p.substring(home.length);
618 return p;
619}
620
621async function resolveTargets(
622 clack: typeof import('@clack/prompts'),

Callers 2

runInstallerWithOptionsFunction · 0.85
runUninstallerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected