MCPcopy
hub / github.com/docker/docker-agent / manager

Struct manager

pkg/tui/components/completion/completion.go:134–147  ·  view source on GitHub ↗

manager represents an item completion component that manages completion state and UI

Source from the content-addressed store, hash-verified

132
133// manager represents an item completion component that manages completion state and UI
134type manager struct {
135 keyMap completionKeyMap
136 width int
137 height int
138 editorBottom int // height from screen bottom where editor ends (for popup positioning)
139 items []Item
140 filteredItems []Item
141 query string
142 selected int
143 scrollOffset int
144 visible bool
145 matchMode MatchMode
146 loading bool // true when async loading is in progress
147}
148
149// New creates a new completion component
150func New() Manager {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected