()
| 945 | // A closure so a re-index (after opting gitignored child repos in, #1156) |
| 946 | // renders identically. Supervision already wraps the whole command. |
| 947 | const renderIndex = async (): Promise<IndexResult> => { |
| 948 | if (options.verbose) { |
| 949 | return await cg.indexAll({ onProgress: createVerboseProgress(), verbose: true }); |
| 950 | } |
| 951 | process.stdout.write(`${colors.dim}${getGlyphs().rail}${colors.reset}\n`); |
| 952 | const progress = createShimmerProgress(); |
| 953 | const r = await cg.indexAll({ onProgress: progress.onProgress }); |
| 954 | await progress.stop(); |
| 955 | return r; |
| 956 | }; |
| 957 | |
| 958 | const result = await renderIndex(); |
| 959 |
no test coverage detected