()
| 713 | } |
| 714 | |
| 715 | func (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 |
| 727 | func (m *AppModel) handlePullKeepConfigKey() (tea.Model, tea.Cmd) { |
no test coverage detected