MCPcopy
hub / github.com/sammcj/gollama / handlePushModelKey

Method handlePushModelKey

app_model.go:705–713  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

703}
704
705func (m *AppModel) handlePushModelKey() (tea.Model, tea.Cmd) {
706 logging.DebugLogger.Println("PushModel key matched")
707 if item, ok := m.list.SelectedItem().(Model); ok {
708 m.message = styles.InfoStyle().Render(fmt.Sprintf("Pushing model: %s\n", item.Name))
709 m.showProgress = true // Show progress bar
710 return m, m.startPushModel(item.Name)
711 }
712 return m, nil
713}
714
715func (m *AppModel) handlePullModelKey() (tea.Model, tea.Cmd) {
716 logging.DebugLogger.Println("PullModel key matched")

Callers 1

handleKeyMsgMethod · 0.95

Calls 3

startPushModelMethod · 0.95
InfoStyleFunction · 0.92
RenderMethod · 0.80

Tested by

no test coverage detected