(options: CLIOptions)
| 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 | } |
nothing calls this directly
no test coverage detected