()
| 1006 | // A closure so a re-index (after opting gitignored child repos in, #1156) |
| 1007 | // renders identically. Supervision already wraps the whole command. |
| 1008 | const renderIndex = async (): Promise<IndexResult> => { |
| 1009 | if (options.verbose) { |
| 1010 | return await cg.indexAll({ onProgress: createVerboseProgress(), verbose: true }); |
| 1011 | } |
| 1012 | process.stdout.write(`${colors.dim}${getGlyphs().rail}${colors.reset}\n`); |
| 1013 | const progress = createShimmerProgress(); |
| 1014 | const r = await cg.indexAll({ onProgress: progress.onProgress }); |
| 1015 | await progress.stop(); |
| 1016 | return r; |
| 1017 | }; |
| 1018 | |
| 1019 | const result = await renderIndex(); |
| 1020 |
no test coverage detected