()
| 147 | } |
| 148 | |
| 149 | func (f FirstTimeSetup) confirmGitignore() (tea.Model, tea.Cmd) { |
| 150 | if f.gitignoreSelected == 0 { |
| 151 | // User wants to add .chief to gitignore |
| 152 | if err := git.AddChiefToGitignore(f.baseDir); err != nil { |
| 153 | // Show error but continue |
| 154 | f.prdNameError = "Warning: failed to add .chief to .gitignore" |
| 155 | } else { |
| 156 | f.result.AddedGitignore = true |
| 157 | } |
| 158 | } |
| 159 | f.step = StepPRDName |
| 160 | return f, nil |
| 161 | } |
| 162 | |
| 163 | func (f FirstTimeSetup) handlePRDNameKeys(msg tea.KeyMsg) (tea.Model, tea.Cmd) { |
| 164 | switch msg.String() { |
no test coverage detected