Render the connecting spinner line (shown before first updateIdleStatus).
()
| 150 | |
| 151 | /** Render the connecting spinner line (shown before first updateIdleStatus). */ |
| 152 | function renderConnectingLine(): void { |
| 153 | clearStatusLines() |
| 154 | |
| 155 | const frame = |
| 156 | BRIDGE_SPINNER_FRAMES[connectingTick % BRIDGE_SPINNER_FRAMES.length]! |
| 157 | let suffix = '' |
| 158 | if (repoName) { |
| 159 | suffix += chalk.dim(' \u00b7 ') + chalk.dim(repoName) |
| 160 | } |
| 161 | if (branch) { |
| 162 | suffix += chalk.dim(' \u00b7 ') + chalk.dim(branch) |
| 163 | } |
| 164 | writeStatus( |
| 165 | `${chalk.yellow(frame)} ${chalk.yellow('Connecting')}${suffix}\n`, |
| 166 | ) |
| 167 | } |
| 168 | |
| 169 | /** Start the connecting spinner. Stopped by first updateIdleStatus(). */ |
| 170 | function startConnecting(): void { |
no test coverage detected