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

Method handlePullModelKey

app_model.go:715–724  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

713}
714
715func (m *AppModel) handlePullModelKey() (tea.Model, tea.Cmd) {
716 logging.DebugLogger.Println("PullModel key matched")
717 if item, ok := m.list.SelectedItem().(Model); ok {
718 m.message = styles.InfoStyle().Render(fmt.Sprintf("Pulling model: %s\n", item.Name))
719 m.pulling = true
720 m.pullProgress = 0
721 return m, m.startPullModel(item.Name)
722 }
723 return m, nil
724}
725
726// handlePullKeepConfigKey handles the shift+p key to pull a model while preserving user config
727func (m *AppModel) handlePullKeepConfigKey() (tea.Model, tea.Cmd) {

Callers 1

handleKeyMsgMethod · 0.95

Calls 3

startPullModelMethod · 0.95
InfoStyleFunction · 0.92
RenderMethod · 0.80

Tested by

no test coverage detected