()
| 801 | // A closure so a re-index (after opting gitignored child repos in, #1156) |
| 802 | // renders identically. Supervision already wraps the whole command. |
| 803 | const renderIndex = async (): Promise<IndexResult> => { |
| 804 | if (options.verbose) { |
| 805 | return await cg.indexAll({ onProgress: createVerboseProgress(), verbose: true }); |
| 806 | } |
| 807 | process.stdout.write(`${colors.dim}${getGlyphs().rail}${colors.reset}\n`); |
| 808 | const progress = createShimmerProgress(); |
| 809 | const r = await cg.indexAll({ onProgress: progress.onProgress }); |
| 810 | await progress.stop(); |
| 811 | return r; |
| 812 | }; |
| 813 | |
| 814 | const result = await renderIndex(); |
| 815 |
no test coverage detected