MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / Update

Method Update

internal/cli/launch_wizard.go:173–199  ·  view source on GitHub ↗
(msg tea.Msg)

Source from the content-addressed store, hash-verified

171func (m launchWizardModel) Init() tea.Cmd { return nil }
172
173func (m launchWizardModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
174 key, ok := msg.(tea.KeyMsg)
175 if !ok {
176 return m, nil
177 }
178 if m.manualEntry {
179 return m.updateManualEntry(key)
180 }
181 step := m.activeStep()
182 if step == nil {
183 // Defensive: should not happen.
184 m.aborted = true
185 return m, tea.Quit
186 }
187 action := step.update(key)
188 switch action {
189 case pickerActionAbort:
190 m.aborted = true
191 return m, tea.Quit
192 case pickerActionBack:
193 m.stepBack()
194 return m, nil
195 case pickerActionAdvance:
196 return m.advanceFromStep(*step)
197 }
198 return m, nil
199}
200
201func (m launchWizardModel) View() string {
202 if m.manualEntry {

Callers

nothing calls this directly

Calls 5

updateManualEntryMethod · 0.95
activeStepMethod · 0.95
stepBackMethod · 0.95
advanceFromStepMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected