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

Function tildify

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

625 * lines. Pure cosmetic.
626 */
627function tildify(p: string): string {
628 const home = require('os').homedir();
629 if (p.startsWith(home + path.sep)) return '~' + p.substring(home.length);
630 return p;
631}
632
633async function resolveTargets(
634 clack: typeof import('@clack/prompts'),

Callers 2

runInstallerWithOptionsFunction · 0.85
runUninstallerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected