()
| 205 | } |
| 206 | |
| 207 | func (m harness) Init() tea.Cmd { |
| 208 | // Animate the banner only when the wide variant is in play; the narrow |
| 209 | // fallback is a single line and looks weird flickering. Width was |
| 210 | // captured in NewProgram before main redirected stdout to the pipe. |
| 211 | if m.bannerWidth >= bigBannerMinWidth { |
| 212 | return tea.Batch(textinput.Blink, shineTickCmd()) |
| 213 | } |
| 214 | return textinput.Blink |
| 215 | } |
| 216 | |
| 217 | // shineTotalTicks / shineFrameMs together set how long the startup shine |
| 218 | // sweeps for: ~2.4 s with an ease-in-out curve. shineEdgePad is how far |
nothing calls this directly
no test coverage detected