MCPcopy
hub / github.com/yorukot/superfile / ApplyToModel

Method ApplyToModel

src/internal/model_msg.go:76–82  ·  view source on GitHub ↗
(m *model)

Source from the content-addressed store, hash-verified

74}
75
76func (msg ProcessBarUpdateMsg) ApplyToModel(m *model) tea.Cmd {
77 cmd, err := msg.pMsg.Apply(&m.processBarModel)
78 if err != nil {
79 slog.Error("Error applying processbar update", "error", err)
80 }
81 return processCmdToTeaCmd(cmd)
82}
83
84type CompressOperationMsg struct {
85 BaseMessage

Callers

nothing calls this directly

Calls 3

processCmdToTeaCmdFunction · 0.85
ApplyMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected