View renders the TUI.
()
| 372 | |
| 373 | // View renders the TUI. |
| 374 | func (f FirstTimeSetup) View() string { |
| 375 | switch f.step { |
| 376 | case StepGitignore: |
| 377 | return f.renderGitignoreStep() |
| 378 | case StepPRDName: |
| 379 | return f.renderPRDNameStep() |
| 380 | case StepPostCompletion: |
| 381 | return f.renderPostCompletionStep() |
| 382 | case StepGHError: |
| 383 | return f.renderGHErrorStep() |
| 384 | default: |
| 385 | return "" |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | func (f FirstTimeSetup) renderGitignoreStep() string { |
| 390 | modalWidth := min(65, f.width-10) |
nothing calls this directly
no test coverage detected