()
| 1078 | // A closure so a re-index (after opting gitignored child repos in, #1156) |
| 1079 | // renders identically. Supervision already wraps the whole command. |
| 1080 | const renderIndex = async (): Promise<IndexResult> => { |
| 1081 | if (options.verbose) { |
| 1082 | return await cg.indexAll({ onProgress: createVerboseProgress(), verbose: true }); |
| 1083 | } |
| 1084 | process.stdout.write(`${colors.dim}${getGlyphs().rail}${colors.reset}\n`); |
| 1085 | const progress = createShimmerProgress(); |
| 1086 | const r = await cg.indexAll({ onProgress: progress.onProgress }); |
| 1087 | await progress.stop(); |
| 1088 | return r; |
| 1089 | }; |
| 1090 | |
| 1091 | const result = await renderIndex(); |
| 1092 |
no test coverage detected