()
| 835 | // A closure so a re-index (after opting gitignored child repos in, #1156) |
| 836 | // renders identically. Supervision already wraps the whole command. |
| 837 | const renderIndex = async (): Promise<IndexResult> => { |
| 838 | if (options.verbose) { |
| 839 | return await cg.indexAll({ onProgress: createVerboseProgress(), verbose: true }); |
| 840 | } |
| 841 | process.stdout.write(`${colors.dim}${getGlyphs().rail}${colors.reset}\n`); |
| 842 | const progress = createShimmerProgress(); |
| 843 | const r = await cg.indexAll({ onProgress: progress.onProgress }); |
| 844 | await progress.stop(); |
| 845 | return r; |
| 846 | }; |
| 847 | |
| 848 | const result = await renderIndex(); |
| 849 |
no test coverage detected