MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / GetSelectedEntry

Method GetSelectedEntry

internal/tui/picker.go:262–267  ·  view source on GitHub ↗

GetSelectedEntry returns the currently selected PRD entry.

()

Source from the content-addressed store, hash-verified

260
261// GetSelectedEntry returns the currently selected PRD entry.
262func (p *PRDPicker) GetSelectedEntry() *PRDEntry {
263 if p.selectedIndex >= 0 && p.selectedIndex < len(p.entries) {
264 return &p.entries[p.selectedIndex]
265 }
266 return nil
267}
268
269// IsEmpty returns true if there are no PRDs.
270func (p *PRDPicker) IsEmpty() bool {

Callers 5

CanMergeMethod · 0.95
CanCleanMethod · 0.95
buildFooterShortcutsMethod · 0.95
handlePickerKeysMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected