MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / selected

Method selected

internal/cli/tool_menu.go:86–92  ·  view source on GitHub ↗

selected returns the currently highlighted item, or "" when the filtered list is empty.

()

Source from the content-addressed store, hash-verified

84// selected returns the currently highlighted item, or "" when the
85// filtered list is empty.
86func (s pickerStep) selected() string {
87 v := s.filtered()
88 if len(v) == 0 {
89 return ""
90 }
91 return v[s.cursor]
92}
93
94func (s pickerStep) view() string {
95 var b strings.Builder

Callers 7

UpdateMethod · 0.45
resultMethod · 0.45
UpdateMethod · 0.45
advanceFromStepMethod · 0.45

Calls 1

filteredMethod · 0.95