MCPcopy Index your code
hub / github.com/docker/docker-agent / leanCheckbox

Method leanCheckbox

cmd/root/agent_picker.go:641–647  ·  view source on GitHub ↗

leanCheckbox renders the "Lean Mode" checkbox line.

()

Source from the content-addressed store, hash-verified

639
640// leanCheckbox renders the "Lean Mode" checkbox line.
641func (m *agentPickerModel) leanCheckbox() string {
642 box := styles.MutedStyle.Render("[ ]")
643 if m.leanMode {
644 box = styles.SuccessStyle.Render("[x]")
645 }
646 return box + " " + styles.SecondaryStyle.Render("Lean Mode")
647}
648
649// panelSize returns the outer dimensions of the rendered picker panel without
650// rendering every card. cardAt relies on it to place hit zones, and it is

Callers 2

leanCheckboxAtMethod · 0.95
renderMethod · 0.95

Calls 1

RenderMethod · 0.65

Tested by

no test coverage detected