()
| 1088 | // A closure so a re-index (after opting gitignored child repos in, #1156) |
| 1089 | // renders identically. Supervision already wraps the whole command. |
| 1090 | const renderIndex = async (): Promise<IndexResult> => { |
| 1091 | if (options.verbose) { |
| 1092 | return await cg.indexAll({ onProgress: createVerboseProgress(), verbose: true }); |
| 1093 | } |
| 1094 | process.stdout.write(`${colors.dim}${getGlyphs().rail}${colors.reset}\n`); |
| 1095 | const progress = createShimmerProgress(); |
| 1096 | const r = await cg.indexAll({ onProgress: progress.onProgress }); |
| 1097 | await progress.stop(); |
| 1098 | return r; |
| 1099 | }; |
| 1100 | |
| 1101 | const result = await renderIndex(); |
| 1102 |
no test coverage detected