MCPcopy
hub / github.com/docker/docker-agent / updateEditorCmd

Method updateEditorCmd

pkg/tui/dispatch.go:35–39  ·  view source on GitHub ↗

updateEditorCmd forwards a message to the editor and returns its cmd.

(msg tea.Msg)

Source from the content-addressed store, hash-verified

33
34// updateEditorCmd forwards a message to the editor and returns its cmd.
35func (m *appModel) updateEditorCmd(msg tea.Msg) tea.Cmd {
36 updated, cmd := m.editor.Update(msg)
37 m.editor = updated.(editor.Editor)
38 return cmd
39}
40
41// updateDialogCmd forwards a message to the dialog manager and returns its cmd.
42func (m *appModel) updateDialogCmd(msg tea.Msg) tea.Cmd {

Callers 5

updateMethod · 0.95
handleKeyPressMethod · 0.95
handleMouseClickMethod · 0.95
forwardEditorMethod · 0.95

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected