MCPcopy Create free account
hub / github.com/cli/cli / selectedEntry

Method selectedEntry

pkg/cmd/extension/browse/model.go:401–406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

399}
400
401func (m *browseModel) selectedEntry() (extEntry, bool) {
402 if m.cursor < 0 || m.cursor >= len(m.filtered) {
403 return extEntry{}, false
404 }
405 return m.entries[m.filtered[m.cursor]], true
406}
407
408func (m *browseModel) applyFilter() bool {
409 previous, hadPrevious := m.selectedEntry()

Callers 6

UpdateMethod · 0.95
applyFilterMethod · 0.95
loadSelectedReadmeMethod · 0.95

Calls

no outgoing calls