MCPcopy
hub / github.com/garrytan/gstack / cacheKeyFor

Function cacheKeyFor

test/gstack-slug-sanitize.test.ts:21–23  ·  view source on GitHub ↗

Reproduce the script's cache-key derivation: absolute path with / -> _.

(dir: string)

Source from the content-addressed store, hash-verified

19
20/** Reproduce the script's cache-key derivation: absolute path with / -> _. */
21function cacheKeyFor(dir: string): string {
22 return dir.replace(/\//g, '_');
23}
24
25function runSlug(cwd: string, home: string) {
26 return spawnSync([SLUG_BIN], {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected