MCPcopy Create free account
hub / github.com/docker/docker-agent / moveUp

Method moveUp

cmd/root/agent_picker.go:250–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248func (m *agentPickerModel) Init() tea.Cmd { return nil }
249
250func (m *agentPickerModel) moveUp() {
251 if m.cursor > 0 {
252 m.cursor--
253 }
254 m.clampOffset()
255}
256
257func (m *agentPickerModel) moveDown() {
258 if m.cursor < len(m.choices)-1 {

Callers 3

UpdateMethod · 0.95
TestAgentPickerWindowingFunction · 0.45

Calls 1

clampOffsetMethod · 0.95

Tested by 2

TestAgentPickerWindowingFunction · 0.36