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

Method Update

internal/cli/tool_menu.go:187–201  ·  view source on GitHub ↗
(msg tea.Msg)

Source from the content-addressed store, hash-verified

185func (m toolMenuModel) Init() tea.Cmd { return nil }
186
187func (m toolMenuModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
188 key, ok := msg.(tea.KeyMsg)
189 if !ok {
190 return m, nil
191 }
192 switch m.step.update(key) {
193 case pickerActionAbort, pickerActionBack:
194 m.quitting = true
195 return m, tea.Quit
196 case pickerActionAdvance:
197 m.selected = m.step.selected()
198 return m, tea.Quit
199 }
200 return m, nil
201}
202
203func (m toolMenuModel) View() string {
204 return m.step.view()

Callers 5

driveProvWizFunction · 0.45
driveFunction · 0.45
providerUpdateCommandMethod · 0.45

Calls 2

updateMethod · 0.45
selectedMethod · 0.45

Tested by 3

driveProvWizFunction · 0.36
driveFunction · 0.36