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