()
| 292 | } |
| 293 | |
| 294 | func (f FirstTimeSetup) confirmPostCompletion() (tea.Model, tea.Cmd) { |
| 295 | f.result.PushOnComplete = f.pushSelected == 0 |
| 296 | f.result.CreatePROnComplete = f.createPRSelected == 0 |
| 297 | |
| 298 | // If PR creation is enabled, validate gh CLI |
| 299 | if f.result.CreatePROnComplete { |
| 300 | return f, func() tea.Msg { |
| 301 | installed, authenticated, err := git.CheckGHCLI() |
| 302 | return ghCheckResultMsg{installed: installed, authenticated: authenticated, err: err} |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | return f, tea.Quit |
| 307 | } |
| 308 | |
| 309 | func (f FirstTimeSetup) handleGHCheckResult(msg ghCheckResultMsg) (tea.Model, tea.Cmd) { |
| 310 | if msg.err != nil { |
no test coverage detected