(level: BumpLevel, focused: boolean)
| 317 | } |
| 318 | |
| 319 | function formatLevel(level: BumpLevel, focused: boolean): string { |
| 320 | if (!focused) { |
| 321 | if (level === 'skip') return pc.dim('·'); |
| 322 | if (level === 'none') return pc.dim('none'); |
| 323 | if (level === 'major') return pc.red(level); |
| 324 | if (level === 'minor') return pc.yellow(level); |
| 325 | return pc.green(level); |
| 326 | } |
| 327 | |
| 328 | // Show the level selector when focused |
| 329 | const parts = LEVELS.map((l) => { |
| 330 | if (l === level) { |
| 331 | if (l === 'skip') return pc.bold(pc.dim('[skip]')); |
| 332 | if (l === 'none') return pc.bold(pc.dim('[none]')); |
| 333 | if (l === 'major') return pc.bold(pc.red(`[${l}]`)); |
| 334 | if (l === 'minor') return pc.bold(pc.yellow(`[${l}]`)); |
| 335 | return pc.bold(pc.green(`[${l}]`)); |
| 336 | } |
| 337 | return pc.dim(l); |
| 338 | }); |
| 339 | |
| 340 | return `◄ ${parts.join(pc.dim(' · '))} ►`; |
| 341 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…