MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / confirmGitignore

Method confirmGitignore

internal/tui/first_time_setup.go:149–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147}
148
149func (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
163func (f FirstTimeSetup) handlePRDNameKeys(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
164 switch msg.String() {

Callers 1

handleGitignoreKeysMethod · 0.95

Calls 1

AddChiefToGitignoreFunction · 0.92

Tested by

no test coverage detected