MCPcopy Create free account
hub / github.com/facebook/memlab / run

Method run

packages/cli/src/commands/MemLabRunCommand.ts:85–94  ·  view source on GitHub ↗
(options: CLIOptions)

Source from the content-addressed store, hash-verified

83 }
84
85 async run(options: CLIOptions): Promise<void> {
86 // move leaks.txt file
87 const workDir = options.configFromOptions?.workDir as Optional<string>;
88 const outDir = fileManager.getDataOutDir({workDir});
89 const leakSrcFile = path.join(outDir, 'leaks.txt');
90 const content = fs.readFileSync(leakSrcFile, {encoding: 'utf8'});
91 const curDataDir = fileManager.getCurDataDir({workDir});
92 const leakDestFile = path.join(curDataDir, 'leaks.txt');
93 fs.writeFileSync(leakDestFile, content, {encoding: 'utf8'});
94 }
95}

Callers

nothing calls this directly

Calls 2

getDataOutDirMethod · 0.80
getCurDataDirMethod · 0.80

Tested by

no test coverage detected