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

Method AddHelpKeys

pkg/tui/dialog/base.go:237–240  ·  view source on GitHub ↗

AddHelpKeys adds key binding help at the bottom.

(bindings ...string)

Source from the content-addressed store, hash-verified

235
236// AddHelpKeys adds key binding help at the bottom.
237func (dc *Content) AddHelpKeys(bindings ...string) *Content {
238 dc.parts = append(dc.parts, RenderHelpKeys(dc.width, bindings...))
239 return dc
240}
241
242// AddHelp adds help text at the bottom.
243func (dc *Content) AddHelp(text string) *Content {

Callers 13

ViewMethod · 0.95
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80
ViewMethod · 0.80

Calls 1

RenderHelpKeysFunction · 0.85

Tested by

no test coverage detected